|
|
@ -43,8 +43,8 @@ class Tautulli:
|
|
|
|
for item in items:
|
|
|
|
for item in items:
|
|
|
|
if item["section_id"] == section_id and count < int(params['list_size']):
|
|
|
|
if item["section_id"] == section_id and count < int(params['list_size']):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
item = library.fetchItem(int(item["rating_key"]))
|
|
|
|
plex_item = library.fetchItem(int(item["rating_key"]))
|
|
|
|
if not isinstance(item, (Movie, Show)):
|
|
|
|
if not isinstance(plex_item, (Movie, Show)):
|
|
|
|
raise BadRequest
|
|
|
|
raise BadRequest
|
|
|
|
rating_keys.append(item["rating_key"])
|
|
|
|
rating_keys.append(item["rating_key"])
|
|
|
|
except (BadRequest, NotFound):
|
|
|
|
except (BadRequest, NotFound):
|
|
|
|