From 003e1cb471475f5af5bd0218e8b15e919f993fcd Mon Sep 17 00:00:00 2001 From: cecini Date: Thu, 29 Oct 2020 18:46:05 +0800 Subject: [PATCH] fix checking media and delete usued media and sync issue#32 --- src/ankisyncd/sync_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ankisyncd/sync_app.py b/src/ankisyncd/sync_app.py index d28bd6a..732dac2 100644 --- a/src/ankisyncd/sync_app.py +++ b/src/ankisyncd/sync_app.py @@ -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.