fix: use try_sync

This commit is contained in:
Guilherme Danno 2021-08-22 03:33:11 -03:00
parent f805e52d8d
commit bc0a93d8b7

View file

@ -56,13 +56,7 @@ def apply_item_changes(lib, item, move, pretend, write):
"""Store, move and write the item according to the arguments.
"""
if not pretend:
# Move the item if it's in the library.
if move and lib.directory in util.ancestry(item.path):
item.move(with_album=False)
if write:
item.try_write()
item.store()
item.try_sync(write, move)
def get_series_type(name):