|
|
|
@ -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):
|
|
|
|
|