[60] catch 406 error

pull/1309/head
meisnate12 2 years ago
parent 9283cbd313
commit 93f3ded877

@ -1 +1 @@
1.18.3-develop59
1.18.3-develop60

@ -1139,9 +1139,17 @@ class Plex(Library):
if image:
logger.info(f"{text} | Reset from {location}")
if poster:
try:
self.upload_poster(item, image, url=image_url)
except BadRequest as e:
logger.stacktrace()
logger.error(f"Plex Error: {e}")
else:
try:
self.upload_background(item, image, url=image_url)
except BadRequest as e:
logger.stacktrace()
logger.error(f"Plex Error: {e}")
if poster and "Overlay" in [la.tag for la in self.item_labels(item)]:
logger.info(self.edit_tags("label", item, remove_tags="Overlay", do_print=False))
else:

Loading…
Cancel
Save