|
|
@ -1172,13 +1172,13 @@ class Plex(Library):
|
|
|
|
if title is None:
|
|
|
|
if title is None:
|
|
|
|
title = item.title
|
|
|
|
title = item.title
|
|
|
|
posters, backgrounds = util.get_image_dicts(group, alias)
|
|
|
|
posters, backgrounds = util.get_image_dicts(group, alias)
|
|
|
|
if image_set and "poster" in image_set:
|
|
|
|
if image_set and "poster" in image_set and image_set["poster"]:
|
|
|
|
posters["image_set"] = image_set["poster"]
|
|
|
|
posters["image_set"] = image_set["poster"]
|
|
|
|
elif image_set and "poster_tpdb" in image_set:
|
|
|
|
elif image_set and "poster_tpdb" in image_set and image_set["poster_tpdb"]:
|
|
|
|
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['poster_tpdb']}"
|
|
|
|
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['poster_tpdb']}"
|
|
|
|
if image_set and "background" in image_set:
|
|
|
|
if image_set and "background" in image_set and image_set["background"]:
|
|
|
|
backgrounds["image_set"] = image_set["background"]
|
|
|
|
backgrounds["image_set"] = image_set["background"]
|
|
|
|
elif image_set and "background_tpdb" in image_set:
|
|
|
|
elif image_set and "background_tpdb" in image_set and image_set["background_tpdb"]:
|
|
|
|
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['background_tpdb']}"
|
|
|
|
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['background_tpdb']}"
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
asset_poster, asset_background, item_dir, folder_name = self.find_item_assets(item, item_asset_directory=asset_location, asset_directory=asset_directory)
|
|
|
|
asset_poster, asset_background, item_dir, folder_name = self.find_item_assets(item, item_asset_directory=asset_location, asset_directory=asset_directory)
|
|
|
|