mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-27 01:32:28 +02:00
[extractor/common] Clarify when and when not we generate the filename
This commit is contained in:
parent
3486df383b
commit
9d4288b2d4
@ -238,7 +238,7 @@ def _download_webpage_handle(self, url_or_request, video_id, note=None, errnote=
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
url = url_or_request
|
url = url_or_request
|
||||||
if len(url) > 200:
|
if len(url) > 200:
|
||||||
h = hashlib.md5(url).hexdigest()
|
h = u'___' + hashlib.md5(url).hexdigest()
|
||||||
url = url[:200 - len(h)] + h
|
url = url[:200 - len(h)] + h
|
||||||
raw_filename = ('%s_%s.dump' % (video_id, url))
|
raw_filename = ('%s_%s.dump' % (video_id, url))
|
||||||
filename = sanitize_filename(raw_filename, restricted=True)
|
filename = sanitize_filename(raw_filename, restricted=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user