Backend:
- Enhance PeopleController with person credits and TMDB filmography endpoints; - update episodeService to filter entries by showInCalendar; - add fetchPersonCombinedCredits function in tmdbService
This commit is contained in:
1 parent
ffe7e52527
commit
11eab03987
5 files changed
+36
-7
No files matched your search
@@ -209,6 +209,18 @@ async function fetchPopularPeople(page = 1) {
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchPersonCombinedCredits(tmdb_id) {
|
||||
try {
|
||||
const url = `${TMDB_APIURL}person/${tmdb_id}/combined_credits?api_key=${TMDB_APIKEY}&language=en-US`;
|
||||
logToFile(`Fetching Person Combined Credits From: ${url}`);
|
||||
const response = await axios.get(url);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.log('Error fetching person combined credits.', error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
fetchEntryData,
|
||||
fetchSeasonData,
|
||||
@@ -216,6 +228,7 @@ module.exports = {
|
||||
fetchCollectionData,
|
||||
fetchEntryCredits,
|
||||
fetchPersonDetails,
|
||||
fetchPersonCombinedCredits,
|
||||
fetchTrending,
|
||||
fetchPopular,
|
||||
searchMulti,
|
||||
|
||||
Reference in new issue
Block a user