Skip to content

Instantly share code, notes, and snippets.

@CarstenG2
Created February 26, 2026 07:43
Show Gist options
  • Select an option

  • Save CarstenG2/9abd615f33a00eebf13a3e3192948915 to your computer and use it in GitHub Desktop.

Select an option

Save CarstenG2/9abd615f33a00eebf13a3e3192948915 to your computer and use it in GitHub Desktop.
xShip: Fix ValueError in listings.py _call() when TMDB returns status_code 34
--- a/resources/lib/indexers/listings.py
+++ b/resources/lib/indexers/listings.py
@@ -106,7 +106,7 @@ class listings:
name = oRequestHandler.request()
data = json.loads(name)
if 'status_code' in data and data['status_code'] == 34:
- return {}
+ return [], 0
list = []
for i in data['results']:
list.append(i['id'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment