|
|
@ -122,6 +122,8 @@ class PlexAPI:
|
|
|
|
for i, item in enumerate(items, 1):
|
|
|
|
for i, item in enumerate(items, 1):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
current = self.fetchItem(item.ratingKey if isinstance(item, (Movie, Show)) else int(item))
|
|
|
|
current = self.fetchItem(item.ratingKey if isinstance(item, (Movie, Show)) else int(item))
|
|
|
|
|
|
|
|
if not isinstance(current, (Movie, Show)):
|
|
|
|
|
|
|
|
raise NotFound
|
|
|
|
except (BadRequest, NotFound):
|
|
|
|
except (BadRequest, NotFound):
|
|
|
|
logger.error(f"Plex Error: Item {item} not found")
|
|
|
|
logger.error(f"Plex Error: Item {item} not found")
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|