Karan Adhikari commited on
Commit
56a4829
·
unverified ·
1 Parent(s): 389b3aa

Add 'external_ids' to TMDb details requests

Browse files
Files changed (1) hide show
  1. Backend/helper/metadata.py +2 -2
Backend/helper/metadata.py CHANGED
@@ -142,7 +142,7 @@ async def fetch_tv_metadata(title, season, episode, encoded_string, year=None, q
142
 
143
  tv_id = tmdb_result.id
144
  try:
145
- tv_details = await tmdb.tv(tv_id).details()
146
  except Exception as e:
147
  LOGGER.warning(f"TMDb TV details failed for {title}: {e}")
148
  return None
@@ -225,7 +225,7 @@ async def fetch_movie_metadata(title, encoded_string, year=None, quality=None, d
225
  return None
226
 
227
  try:
228
- movie_details = await tmdb.movie(tmdb_result.id).details()
229
  except Exception as e:
230
  LOGGER.warning(f"TMDb movie details failed for {title}: {e}")
231
  return None
 
142
 
143
  tv_id = tmdb_result.id
144
  try:
145
+ tv_details = await tmdb.tv(tv_id).details(append_to_response="external_ids")
146
  except Exception as e:
147
  LOGGER.warning(f"TMDb TV details failed for {title}: {e}")
148
  return None
 
225
  return None
226
 
227
  try:
228
+ movie_details = await tmdb.movie(tmdb_result.id).details(append_to_response="external_ids")
229
  except Exception as e:
230
  LOGGER.warning(f"TMDb movie details failed for {title}: {e}")
231
  return None