Fix issue with overwriting files

This commit is contained in:
pukkandan
2021-02-01 20:45:46 +05:30
parent c55256c5a3
commit b9d973bef1
2 changed files with 5 additions and 2 deletions

View File

@@ -332,7 +332,7 @@ class FileDownloader(object):
"""
nooverwrites_and_exists = (
not self.params.get('overwrites', True)
not self.params.get('overwrites', subtitle)
and os.path.exists(encodeFilename(filename))
)