A feature-rich command-line audio/video downloader
[extractor/common] Encode the url when calculating the md5 with `—write-pages` option
Jaime Marquínez Ferrándiz944d65c762cc
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex aa48bd4e6b..3cf742a3b6 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -240,7 +240,7 @@ class InfoExtractor(object):except AttributeError:url = url_or_requestif len(url) > 200:- h = u'___' + hashlib.md5(url).hexdigest()+ h = u'___' + hashlib.md5(url.encode('utf-8')).hexdigest()url = url[:200 - len(h)] + hraw_filename = ('%s_%s.dump' % (video_id, url))filename = sanitize_filename(raw_filename, restricted=True)