[113] fix playlist bug and plex_search bug

pull/933/head
meisnate12 3 years ago
parent 94dfe8540d
commit 79ee05fb0c

@ -1 +1 @@
1.16.5-develop112
1.16.5-develop113

@ -213,7 +213,7 @@ def get_list(data, lower=False, upper=False, split=True, int_list=False, trim=Tr
elif isinstance(data, list): list_data = data
elif isinstance(data, dict): return [data]
elif split is False: list_data = [str(data)]
else: list_data = str(data).split(split)
else: list_data = [s.strip() for s in str(data).split(split)]
def get_str(input_data):
return str(input_data).strip() if trim else str(input_data)

@ -232,7 +232,7 @@ def start(attrs):
logger.remove_main_handler()
def run_config(config):
library_status = run_libraries(config) if not playlist_only else {}
library_status = run_libraries(config)
playlist_status = {}
playlist_stats = {}
@ -418,7 +418,7 @@ def run_libraries(config):
logger.debug(f"Optimize: {library.optimize}")
logger.debug(f"Timeout: {library.timeout}")
if config.delete_collections:
if config.delete_collections and not playlist_only:
time_start = datetime.now()
logger.info("")
logger.separator(f"Deleting all Collections from the {library.name} Library", space=False, border=False)
@ -452,13 +452,13 @@ def run_libraries(config):
library.map_guids(temp_items)
library_status[library.name]["Library Loading and Mapping"] = str(datetime.now() - time_start).split('.')[0]
if config.library_first and not config.test_mode and not collection_only:
if config.library_first and not config.test_mode and not collection_only and not playlist_only:
if not overlays_only and library.library_operation:
library_status[library.name]["Library Operations"] = library.Operations.run_operations()
if not operations_only and (library.overlay_files or library.remove_overlays):
library_status[library.name]["Library Overlays"] = library.Overlays.run_overlays()
if not operations_only and not overlays_only:
if not operations_only and not overlays_only and not playlist_only:
time_start = datetime.now()
for metadata in library.metadata_files:
metadata_name = metadata.get_file_name()
@ -487,7 +487,7 @@ def run_libraries(config):
logger.re_add_library_handler(library.mapping_name)
library_status[library.name]["Library Metadata Files"] = str(datetime.now() - time_start).split('.')[0]
if not config.library_first and not config.test_mode and not collection_only:
if not config.library_first and not config.test_mode and not collection_only and not playlist_only:
if not overlays_only and library.library_operation:
library_status[library.name]["Library Operations"] = library.Operations.run_operations()
if not operations_only and (library.overlay_files or library.remove_overlays):

Loading…
Cancel
Save