small fixes

pull/707/head
meisnate12 3 years ago
parent 086564d571
commit 8fe3cd635f

@ -1 +1 @@
1.15.1-develop56 1.15.1-develop57

@ -589,7 +589,8 @@ class ConfigFile:
"mass_collection_mode": None, "mass_collection_mode": None,
"metadata_backup": None, "metadata_backup": None,
"genre_collections": None, "genre_collections": None,
"update_blank_track_titles": None "update_blank_track_titles": None,
"mass_content_rating_update": None
} }
display_name = f"{params['name']} ({params['mapping_name']})" if lib and "library_name" in lib and lib["library_name"] else params["mapping_name"] display_name = f"{params['name']} ({params['mapping_name']})" if lib and "library_name" in lib and lib["library_name"] else params["mapping_name"]

@ -461,9 +461,13 @@ def library_operations(config, library):
logger.info(util.adjust_space(f"{item.title[:25]:<25} | Splitting")) logger.info(util.adjust_space(f"{item.title[:25]:<25} | Splitting"))
if library.update_blank_track_titles: if library.update_blank_track_titles:
for item in library.get_all(collection_level="track"): tracks = library.get_all(collection_level="track")
for i, item in enumerate(tracks, 1):
util.print_return(f"Processing Track: {i}/{len(tracks)} {item.title}")
if not item.title and item.sortTitle: if not item.title and item.sortTitle:
library.edit_query(item, {"title.locked": 1, "title.value": item.sortTitle}) library.edit_query(item, {"title.locked": 1, "title.value": item.sortTitle})
logger.info(f"Track: {item.sortTitle} was updated with sort title")
util.print_end()
tmdb_collections = {} tmdb_collections = {}
if library.items_library_operation: if library.items_library_operation:

Loading…
Cancel
Save