small fixes

This commit is contained in:
meisnate12 2022-02-08 08:43:31 -05:00
parent 086564d571
commit 8fe3cd635f
3 changed files with 8 additions and 3 deletions

View file

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

View file

@ -589,7 +589,8 @@ class ConfigFile:
"mass_collection_mode": None,
"metadata_backup": 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"]

View file

@ -461,9 +461,13 @@ def library_operations(config, library):
logger.info(util.adjust_space(f"{item.title[:25]:<25} | Splitting"))
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:
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 = {}
if library.items_library_operation: