projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8deef
)
[extractor/common] --write-pages: Correct file name if video_id is None
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 15 May 2014 10:39:33 +0000
(12:39 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 15 May 2014 10:39:33 +0000
(12:39 +0200)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 11b31db88422229b37c85a96ed1df3746867bf5a..1e366a13c710d3c58d564466f22018efda8eebb5 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-242,7
+242,7
@@
class InfoExtractor(object):
url = url_or_request.get_full_url()
except AttributeError:
url = url_or_request
- basen =
video_id + '_' + url
+ basen =
'%s_%s' % (video_id, url)
if len(basen) > 240:
h = u'___' + hashlib.md5(basen.encode('utf-8')).hexdigest()
basen = basen[:240 - len(h)] + h