aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-17 11:38:59 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-17 11:39:06 +0100
commitfdc80008100ebcca2a1456d6e8a7064e65f6e69f (patch)
tree31d35ac7ee9ab31c94d1df387aa4ecac1ee7a1b5 /youtube_dl/downloader
parenta91c9b15e3b2b2b3f2f9385b18ae7d75b802e72f (diff)
[downloader] Handle a file ./- (Fixes #4498)
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index d3e0b0110..584bde732 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -285,7 +285,7 @@ class FileDownloader(object):
Return True on success and False otherwise
"""
# Check file already present
- if self.params.get('continuedl', False) and os.path.isfile(encodeFilename(filename)) and not self.params.get('nopart', False):
+ if filename != '-' and self.params.get('continuedl', False) and os.path.isfile(encodeFilename(filename)) and not self.params.get('nopart', False):
self.report_file_already_downloaded(filename)
self._hook_progress({
'filename': filename,