Backend: Updated tmdb services endpoint to get tv series credits
This commit is contained in:
1 parent
1058274a6a
commit
72fd77ee01
1 file changed
+5
@@ -103,6 +103,11 @@ async function fetchEntryCredits(tmdb_id, is_tvserie) {
|
||||
try {
|
||||
let type = is_tvserie ? "tv" : "movie";
|
||||
let url = `${TMDB_APIURL}${type}/${tmdb_id}/credits?api_key=${TMDB_APIKEY}&language=en-US`;
|
||||
|
||||
if (is_tvserie) {
|
||||
url = `${TMDB_APIURL}${type}/${tmdb_id}/aggregate_credits?api_key=${TMDB_APIKEY}&language=en-US`
|
||||
}
|
||||
|
||||
logToFile(`Fetching Entry Credits From: ${url}`);
|
||||
|
||||
let data;
|
||||
|
||||
Reference in new issue
Block a user