push
This commit is contained in:
@@ -178,6 +178,8 @@ function searchResult(m) {
|
||||
name: m.title || m.name,
|
||||
year: date ? String(date).slice(0, 4) : '',
|
||||
poster: m.poster_path ? `https://image.tmdb.org/t/p/w342${m.poster_path}` : '',
|
||||
backdrop: m.backdrop_path ? `https://image.tmdb.org/t/p/w1280${m.backdrop_path}` : '',
|
||||
rating: m.vote_average ? Number(m.vote_average).toFixed(1) : '',
|
||||
overview: m.overview || '',
|
||||
};
|
||||
}
|
||||
@@ -239,6 +241,7 @@ async function handleEpisodes(req, res, url, id, season) {
|
||||
episode_number: e.episode_number,
|
||||
name: e.name,
|
||||
air_date: e.air_date || '',
|
||||
still: e.still_path ? `https://image.tmdb.org/t/p/w300${e.still_path}` : '',
|
||||
})),
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user