|
|
@ -90,7 +90,7 @@ notification_details = ["collection_creation_webhooks", "collection_addition_web
|
|
|
|
details = ["collection_mode", "collection_order", "collection_level", "collection_minimum", "label"] + boolean_details + string_details + notification_details
|
|
|
|
details = ["collection_mode", "collection_order", "collection_level", "collection_minimum", "label"] + boolean_details + string_details + notification_details
|
|
|
|
collectionless_details = ["collection_order", "plex_collectionless", "label", "label_sync_mode", "test"] + \
|
|
|
|
collectionless_details = ["collection_order", "plex_collectionless", "label", "label_sync_mode", "test"] + \
|
|
|
|
poster_details + background_details + summary_details + string_details
|
|
|
|
poster_details + background_details + summary_details + string_details
|
|
|
|
item_details = ["item_label", "item_radarr_tag", "item_sonarr_tag", "item_overlay", "item_assets", "revert_overlay", "item_lock_art", "item_lock_poster", "item_refresh"] + \
|
|
|
|
item_details = ["item_label", "item_radarr_tag", "item_sonarr_tag", "item_overlay", "item_assets", "revert_overlay", "item_lock_background", "item_lock_poster", "item_refresh"] + \
|
|
|
|
list(plex.item_advance_keys.keys())
|
|
|
|
list(plex.item_advance_keys.keys())
|
|
|
|
radarr_details = ["radarr_add", "radarr_add_existing", "radarr_folder", "radarr_monitor", "radarr_search", "radarr_availability", "radarr_quality", "radarr_tag"]
|
|
|
|
radarr_details = ["radarr_add", "radarr_add_existing", "radarr_folder", "radarr_monitor", "radarr_search", "radarr_availability", "radarr_quality", "radarr_tag"]
|
|
|
|
sonarr_details = [
|
|
|
|
sonarr_details = [
|
|
|
@ -742,7 +742,7 @@ class CollectionBuilder:
|
|
|
|
raise Failed("Each Overlay can only be used once per Library")
|
|
|
|
raise Failed("Each Overlay can only be used once per Library")
|
|
|
|
self.library.overlays.append(method_data)
|
|
|
|
self.library.overlays.append(method_data)
|
|
|
|
self.item_details[method_name] = method_data
|
|
|
|
self.item_details[method_name] = method_data
|
|
|
|
elif method_name in ["item_assets", "revert_overlay", "item_lock_art", "item_lock_poster", "item_refresh"]:
|
|
|
|
elif method_name in ["item_assets", "revert_overlay", "item_lock_background", "item_lock_poster", "item_refresh"]:
|
|
|
|
if util.parse(method_name, method_data, datatype="bool", default=False):
|
|
|
|
if util.parse(method_name, method_data, datatype="bool", default=False):
|
|
|
|
self.item_details[method_name] = True
|
|
|
|
self.item_details[method_name] = True
|
|
|
|
elif method_name in plex.item_advance_keys:
|
|
|
|
elif method_name in plex.item_advance_keys:
|
|
|
@ -1835,9 +1835,10 @@ class CollectionBuilder:
|
|
|
|
if getattr(item, key) != options[method_data]:
|
|
|
|
if getattr(item, key) != options[method_data]:
|
|
|
|
advance_edits[key] = options[method_data]
|
|
|
|
advance_edits[key] = options[method_data]
|
|
|
|
self.library.edit_item(item, item.title, self.collection_level.capitalize(), advance_edits, advanced=True)
|
|
|
|
self.library.edit_item(item, item.title, self.collection_level.capitalize(), advance_edits, advanced=True)
|
|
|
|
# Locking art and poster should come before refreshing since refreshing can change art and poster (i.e. if
|
|
|
|
# Locking background and poster should come before refreshing since refreshing can change background/poster
|
|
|
|
# specified to both lock art/poster and refresh, assume that the current art/poster should be kept)
|
|
|
|
# (i.e. if specified to both lock background/poster and refresh, assume that the current background/poster
|
|
|
|
if "item_lock_art" in self.item_details:
|
|
|
|
# should be kept)
|
|
|
|
|
|
|
|
if "item_lock_background" in self.item_details:
|
|
|
|
item.lockArt()
|
|
|
|
item.lockArt()
|
|
|
|
if "item_lock_poster" in self.item_details:
|
|
|
|
if "item_lock_poster" in self.item_details:
|
|
|
|
item.lockPoster()
|
|
|
|
item.lockPoster()
|
|
|
|