fix checking media and delete usued media and sync issue#32

This commit is contained in:
cecini 2020-10-29 18:46:05 +08:00
parent 68776c21b5
commit 003e1cb471

View File

@ -236,7 +236,7 @@ class SyncMediaHandler:
# Remove media files that were removed on the client.
media_to_remove = []
for normname, ordinal in meta:
if ordinal == '':
if not ordinal:
media_to_remove.append(self._normalize_filename(normname))
# Add media files that were added on the client.