logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: fdc80008100ebcca2a1456d6e8a7064e65f6e69f
parent a91c9b15e3b2b2b3f2f9385b18ae7d75b802e72f
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Wed, 17 Dec 2014 11:38:59 +0100

[downloader] Handle a file ./- (Fixes #4498)

Diffstat:

Myoutube_dl/downloader/common.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,