files dict is now only updated if actual files are present

This commit is contained in:
Kjistóf 2017-10-27 02:12:28 +02:00
parent 7c9cc4618f
commit 2afd93edfb
1 changed files with 1 additions and 1 deletions

View File

@ -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