[77] #1251 Seasons now look at shows for posters when nothing else is found

pull/1324/head
meisnate12 2 years ago
parent 2a99dc2396
commit e337a62fe2

@ -1 +1 @@
1.18.3-develop76 1.18.3-develop77

@ -636,6 +636,19 @@ class Plex(Library):
continue continue
if image_url: if image_url:
break break
if not image_url and "plex" in providers and isinstance(item, Season):
for poster in item.show().posters():
if poster.key.startswith("/"):
image_url = f"{self.url}{poster.key}&X-Plex-Token={self.token}"
if poster.ratingKey.startswith("upload"):
try:
self.check_image_for_overlay(image_url, os.path.join(self.overlay_backup, "temp"), remove=True)
except Failed as e:
logger.trace(f"Plex Error: {e}")
continue
else:
image_url = poster.key
break
if not image_url: if not image_url:
raise Failed("Overlay Error: No Poster found to reset") raise Failed("Overlay Error: No Poster found to reset")
return image_url return image_url

Loading…
Cancel
Save