From 2afd93edfbd748ab7d30de21cbdb6ea16d9a320a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Fri, 27 Oct 2017 02:12:28 +0200 Subject: [PATCH] files dict is now only updated if actual files are present --- coub-dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coub-dl.py b/coub-dl.py index 2f9f31c..5031db6 100755 --- a/coub-dl.py +++ b/coub-dl.py @@ -100,7 +100,7 @@ class coub_dl: for file in listdir(self._directory): for filename in self._files_dict: fullname = join(self._directory, file) - if match('^{}.*'.format(self._files_dict[filename]), fullname): + if match('^{}\..+$'.format(self._files_dict[filename]), fullname): self._files_dict[filename] = fullname