refactor(tmdb): reduce still path condition

This commit is contained in:
TOomaAh
2024-10-29 23:20:41 +01:00
parent 3f16176667
commit a5e8320e8a

View File

@@ -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;