projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3486df3
)
[extractor/common] Clarify when and when not we generate the filename
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 21 Jan 2014 00:41:13 +0000
(
01:41
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 21 Jan 2014 00:41:13 +0000
(
01:41
+0100)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 6c5d77e583586b266d480fa4c01acf9949cfe3a7..582eb4f5be4f8889994ba0d3e7abc186c9c5547e 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-238,7
+238,7
@@
class InfoExtractor(object):
except AttributeError:
url = url_or_request
if len(url) > 200:
- h = hashlib.md5(url).hexdigest()
+ h =
u'___' +
hashlib.md5(url).hexdigest()
url = url[:200 - len(h)] + h
raw_filename = ('%s_%s.dump' % (video_id, url))
filename = sanitize_filename(raw_filename, restricted=True)