From a5e8320e8a7e176419d5b76ba10c746d16042c0f Mon Sep 17 00:00:00 2001 From: TOomaAh Date: Tue, 29 Oct 2024 23:20:41 +0100 Subject: [PATCH] refactor(tmdb): reduce still path condition --- server/api/indexer/themoviedb/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/indexer/themoviedb/index.ts b/server/api/indexer/themoviedb/index.ts index d9db736d..6b712836 100644 --- a/server/api/indexer/themoviedb/index.ts +++ b/server/api/indexer/themoviedb/index.ts @@ -310,7 +310,7 @@ class TheMovieDb extends ExternalAPI implements TvShowIndexer { ); data.episodes = data.episodes.map((episode) => { - if (episode.still_path != null && episode.still_path !== '') { + if (episode.still_path) { episode.still_path = `https://image.tmdb.org/t/p/original/${episode.still_path}`; } return episode;