projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a91c9b1
)
[downloader] Handle a file ./- (Fixes #4498)
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 17 Dec 2014 10:38:59 +0000
(11:38 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 17 Dec 2014 10:39:06 +0000
(11:39 +0100)
youtube_dl/downloader/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/common.py
b/youtube_dl/downloader/common.py
index d3e0b011047e8f59a10639d41d191d6cd8800a31..584bde732f9f99cfd4c6a5394d24d4fc64e44b37 100644
(file)
--- 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,