mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
fix: use episode thumbnail images for local episodes when useShowPoster is false
Fixes: #1673
This commit is contained in:
@@ -241,9 +241,16 @@ export class XmlTvWriter {
|
||||
url = `{{host}}/api/programs/${showId}/artwork/poster`;
|
||||
} else if (
|
||||
program.type === 'episode' &&
|
||||
program.artwork?.some((art) => art.artworkType === 'poster')
|
||||
program.artwork?.some(
|
||||
(art) =>
|
||||
art.artworkType === 'poster' || art.artworkType === 'thumbnail',
|
||||
)
|
||||
) {
|
||||
url = `{{host}}/api/programs/${program.uuid}/artwork/poster`;
|
||||
const art = program.artwork.find(
|
||||
(art) =>
|
||||
art.artworkType === 'poster' || art.artworkType === 'thumbnail',
|
||||
);
|
||||
url = `{{host}}/api/programs/${program.uuid}/artwork/${art?.artworkType}`;
|
||||
} else if (
|
||||
program.type === 'track' &&
|
||||
program.album?.artwork?.some((art) => art.artworkType === 'poster')
|
||||
|
||||
Reference in New Issue
Block a user