forgot this important section lol

This commit is contained in:
meisnate12 2021-04-21 17:10:34 -04:00
parent a8ca6ce033
commit a5e254aee9
2 changed files with 2 additions and 10 deletions

View file

@ -1199,15 +1199,7 @@ class CollectionBuilder:
key, options = plex.item_advance_keys[method_name]
if getattr(item, key) != options[method_data]:
advance_edits[key] = options[method_data]
if len(advance_edits) > 0:
logger.debug(f"Details Update: {advance_edits}")
try:
item.editAdvanced(**advance_edits)
item.reload()
logger.info(f"{'Movie' if self.library.is_movie else 'Show'}: {item.title} Advanced Details Update Successful")
except BadRequest:
util.print_stacktrace()
logger.error(f"{'Movie' if self.library.is_movie else 'Show'}: {item.title} Advanced Details Update Failed")
self.library.edit_item(item, item.title, "Movie" if self.library.is_movie else "Show", advance_edits, advanced=True)
if len(edits) > 0:
logger.debug(edits)

View file

@ -89,7 +89,7 @@ util.centered("| |_) | |/ _ \\ \\/ / | |\\/| |/ _ \\ __/ _` | | |\\/| |/ _` | '_
util.centered("| __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | ")
util.centered("|_| |_|\\___/_/\\_\\ |_| |_|\\___|\\__\\__,_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_| ")
util.centered(" |___/ ")
util.centered(" Version: 1.7.2-Beta6 ")
util.centered(" Version: 1.7.2-Beta7 ")
util.separator()
if my_tests: