Merge pull request #38 from cecini/deleteusuedmedia

fix checking media and delete usued media and sync issue#32
This commit is contained in:
Vikash Kothary 2020-11-01 19:36:11 +00:00 committed by GitHub
commit f5dca1f1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.