mirror of
https://github.com/sct/overseerr.git
synced 2025-12-26 16:27:17 +01:00
Fix episode images url not allowed (#1580)
* fix: fix url parameter not allowed * fix: use cached image for episode images * refactor: remove console logs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import AirDateBadge from '@app/components/AirDateBadge';
|
||||
import CachedImage from '@app/components/Common/CachedImage';
|
||||
import LoadingSpinner from '@app/components/Common/LoadingSpinner';
|
||||
import defineMessages from '@app/utils/defineMessages';
|
||||
import type { SeasonWithEpisodes } from '@server/models/Tv';
|
||||
import Image from 'next/image';
|
||||
import { useIntl } from 'react-intl';
|
||||
import useSWR from 'swr';
|
||||
|
||||
@@ -57,7 +57,8 @@ const Season = ({ seasonNumber, tvId }: SeasonProps) => {
|
||||
</div>
|
||||
{episode.stillPath && (
|
||||
<div className="relative aspect-video xl:h-32">
|
||||
<Image
|
||||
<CachedImage
|
||||
type="tmdb"
|
||||
className="rounded-lg object-contain"
|
||||
src={`https://image.tmdb.org/t/p/original/${episode.stillPath}`}
|
||||
alt=""
|
||||
|
||||
Reference in New Issue
Block a user