fix: subtitles

This commit is contained in:
ner committed 2024-10-04 15:46:08 +03:00
1 parent 0e3e50344f
commit 46948e7914
9 files changed
+69 -105

No files matched your search

+3 -3
View File
@@ -9,15 +9,15 @@ const mapMoviesSeriesResponseToShows = (
id,
type,
overview,
backdrop: backdrop_path,
poster: poster_path,
rating: vote_average,
votes: vote_count,
backdrop: backdrop_path ? `https://image.tmdb.org/t/p/w1280/${backdrop_path}` : '',
poster: poster_path ? `https://image.tmdb.org/t/p/w500/${poster_path}` : '',
release: 'release_date' in item ? item.release_date : item.first_air_date,
title: 'release_date' in item ? item.title : item.name,
genres: []
}))
.filter((show) => show.votes && show.release)
.filter((show) => show.votes && show.release && show.backdrop && show.poster)
});
export default mapMoviesSeriesResponseToShows;