diff options
author | Philipp Hagemeister <[email protected]> | 2014-01-21 01:41:13 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-01-21 01:41:13 +0100 |
commit | 9d4288b2d4a47d36a2a8fa116f1023251e436cdc (patch) | |
tree | f6ea9956082b604f3c76ef21c3bc4acf30e2ad82 | |
parent | 3486df383ba3b2f799c5d65bc563bba8dd8c5903 (diff) | |
download | youtube-dl-9d4288b2d4a47d36a2a8fa116f1023251e436cdc.tar.gz youtube-dl-9d4288b2d4a47d36a2a8fa116f1023251e436cdc.zip |
[extractor/common] Clarify when and when not we generate the filename
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 6c5d77e58..582eb4f5b 100644 --- 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) |