]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader] Handle a file ./- (Fixes #4498)
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 17 Dec 2014 10:38:59 +0000 (11:38 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 17 Dec 2014 10:39:06 +0000 (11:39 +0100)
youtube_dl/downloader/common.py

index d3e0b011047e8f59a10639d41d191d6cd8800a31..584bde732f9f99cfd4c6a5394d24d4fc64e44b37 100644 (file)
@@ -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,