fix(ui): allow thetvdb images for unmatched series (#1105)
When a series has no equivalent in TheTVDB used by Sonarr, a popup is displayed to select the series on TheTVDB. The images in this popup come from artworks.thetvdb.com, which was not an authorized domain for Next.js images. fix #1075
This commit is contained in:
@@ -10,6 +10,7 @@ module.exports = {
|
|||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{ hostname: 'gravatar.com' },
|
{ hostname: 'gravatar.com' },
|
||||||
{ hostname: 'image.tmdb.org' },
|
{ hostname: 'image.tmdb.org' },
|
||||||
|
{ hostname: 'artworks.thetvdb.com' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
webpack(config) {
|
webpack(config) {
|
||||||
|
|||||||
@@ -88,14 +88,14 @@ const SearchByNameModal = ({
|
|||||||
tvdbId === item.tvdbId ? 'ring ring-indigo-500' : ''
|
tvdbId === item.tvdbId ? 'ring ring-indigo-500' : ''
|
||||||
} `}
|
} `}
|
||||||
>
|
>
|
||||||
<div className="flex w-24 flex-none items-center space-x-4">
|
<div className="relative flex w-24 flex-none items-center space-x-4 self-stretch">
|
||||||
<Image
|
<Image
|
||||||
src={
|
src={
|
||||||
item.remotePoster ??
|
item.remotePoster ??
|
||||||
'/images/overseerr_poster_not_found.png'
|
'/images/overseerr_poster_not_found.png'
|
||||||
}
|
}
|
||||||
alt={item.title}
|
alt={item.title}
|
||||||
className="h-100 w-auto rounded-md"
|
className="w-100 h-auto rounded-md"
|
||||||
fill
|
fill
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user