refactor(tmdb): reduce still path condition

This commit is contained in:
TOomaAh
2024-10-29 23:20:41 +01:00
parent 1fb1dc9e1b
commit b45898665e

View File

@@ -343,7 +343,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;