|
|
@ -266,6 +266,7 @@ class Overlays:
|
|
|
|
return key_to_overlays, properties
|
|
|
|
return key_to_overlays, properties
|
|
|
|
|
|
|
|
|
|
|
|
def find_poster_url(self, item):
|
|
|
|
def find_poster_url(self, item):
|
|
|
|
|
|
|
|
try:
|
|
|
|
if isinstance(item, Movie):
|
|
|
|
if isinstance(item, Movie):
|
|
|
|
if item.ratingKey in self.library.movie_rating_key_map:
|
|
|
|
if item.ratingKey in self.library.movie_rating_key_map:
|
|
|
|
return self.config.TMDb.get_movie(self.library.movie_rating_key_map[item.ratingKey]).poster_url
|
|
|
|
return self.config.TMDb.get_movie(self.library.movie_rating_key_map[item.ratingKey]).poster_url
|
|
|
@ -278,6 +279,8 @@ class Overlays:
|
|
|
|
return self.config.TMDb.get_season(tmdb_id, item.seasonNumber).poster_url
|
|
|
|
return self.config.TMDb.get_season(tmdb_id, item.seasonNumber).poster_url
|
|
|
|
elif isinstance(item, Episode):
|
|
|
|
elif isinstance(item, Episode):
|
|
|
|
return self.config.TMDb.get_episode(tmdb_id, item.seasonNumber, item.episodeNumber).still_url
|
|
|
|
return self.config.TMDb.get_episode(tmdb_id, item.seasonNumber, item.episodeNumber).still_url
|
|
|
|
|
|
|
|
except Failed as e:
|
|
|
|
|
|
|
|
logger.error(e)
|
|
|
|
|
|
|
|
|
|
|
|
def get_overlay_items(self, label="Overlay", libtype=None, ignore=None):
|
|
|
|
def get_overlay_items(self, label="Overlay", libtype=None, ignore=None):
|
|
|
|
items = self.library.search(label=label, libtype=libtype)
|
|
|
|
items = self.library.search(label=label, libtype=libtype)
|
|
|
|