fix: error if tmdb poster is null

This commit is contained in:
TOomaAh
2024-10-20 16:27:08 +02:00
parent 377c6a40a8
commit 7107f1e91f
2 changed files with 1 additions and 3 deletions

View File

@@ -347,7 +347,7 @@ class TheMovieDb extends ExternalAPI implements TvShowIndexer {
);
data.episodes = data.episodes.map((episode) => {
if (episode.still_path !== '') {
if (episode.still_path != null && episode.still_path !== '') {
episode.still_path = `https://image.tmdb.org/t/p/original/${episode.still_path}`;
}
return episode;

View File

@@ -66,8 +66,6 @@ class Tvdb extends ExternalAPI implements TvShowIndexer {
for (const season of correctSeasons) {
if (season.seasonNumber) {
logger.info(`Fetching TV season ${season.seasonNumber}`);
try {
const seasonData = {
id: tvdbId,