mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 14:30:25 +00:00
[87] #744 refresh items that dont have titleSort
This commit is contained in:
parent
25aa052b3f
commit
b6b01c4547
2 changed files with 4 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop86
|
||||
1.15.1-develop87
|
||||
|
|
|
@ -433,7 +433,9 @@ def library_operations(config, library):
|
|||
num_edited = 0
|
||||
for i, item in enumerate(tracks, 1):
|
||||
logger.ghost(f"Processing Track: {i}/{len(tracks)} {item.title}")
|
||||
if not item.title and item.sortTitle:
|
||||
if not hasattr(item, "title") or not hasattr(item, "titleSort"):
|
||||
item.refresh()
|
||||
elif not item.title and item.sortTitle:
|
||||
library.edit_query(item, {"title.locked": 1, "title.value": item.sortTitle})
|
||||
num_edited += 1
|
||||
logger.info(f"Track: {item.sortTitle} was updated with sort title")
|
||||
|
|
Loading…
Reference in a new issue