mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
small fixes
This commit is contained in:
parent
086564d571
commit
8fe3cd635f
3 changed files with 8 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop56
|
||||
1.15.1-develop57
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue