Browse Source

[extractor/common] Clarify when and when not we generate the filename

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
9d4288b2d4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py View File

@ -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)


Loading…
Cancel
Save