This commit is contained in:
4DBug
2026-08-26 21:15:42 -05:00
parent bbb5659e00
commit fc0e2c7af6
7 changed files with 461 additions and 14 deletions
+3
View File
@@ -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) {