mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-23 04:53:07 +00:00
catch overlay error
This commit is contained in:
parent
470b1baf0f
commit
ab2c2d4973
1 changed files with 6 additions and 2 deletions
|
@ -2,7 +2,7 @@ import logging, os, re
|
|||
from datetime import datetime, timedelta
|
||||
from modules import anidb, anilist, icheckmovies, imdb, letterboxd, mal, plex, radarr, sonarr, tautulli, tmdb, trakttv, tvdb, util
|
||||
from modules.util import Failed, ImageData
|
||||
from PIL import Image
|
||||
from PIL import Image, UnidentifiedImageError
|
||||
from plexapi.exceptions import BadRequest, NotFound
|
||||
from plexapi.video import Movie, Show
|
||||
from urllib.parse import quote
|
||||
|
@ -1707,7 +1707,11 @@ class CollectionBuilder:
|
|||
if int(item.ratingKey) in rating_keys:
|
||||
rating_keys.remove(int(item.ratingKey))
|
||||
if self.details["item_assets"] or overlay is not None:
|
||||
self.library.update_item_from_assets(item, overlay=overlay)
|
||||
try:
|
||||
self.library.update_item_from_assets(item, overlay=overlay)
|
||||
except UnidentifiedImageError:
|
||||
util.print_stacktrace()
|
||||
logger.error(f"Overlay Error: Overlay Failed for {item.title}")
|
||||
self.library.edit_tags("label", item, add_tags=add_tags, remove_tags=remove_tags, sync_tags=sync_tags)
|
||||
if "item_radarr_tag" in self.item_details and item.ratingKey in self.library.movie_rating_key_map:
|
||||
tmdb_ids.append(self.library.movie_rating_key_map[item.ratingKey])
|
||||
|
|
Loading…
Reference in a new issue