diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-05-31 14:40:05 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-05-31 14:40:05 +0200 |
commit | 386ba39cac2f5ab614366d17c32e69d1cfb644a2 (patch) | |
tree | 12b44c83fea886666e8139e1b4df98d0ea5686c9 /youtube_dl/extractor/fc2.py | |
parent | 236d0cd07c4f9e7d9d9367da1c139b850391540f (diff) | |
download | youtube-dl-386ba39cac2f5ab614366d17c32e69d1cfb644a2.tar.gz youtube-dl-386ba39cac2f5ab614366d17c32e69d1cfb644a2.zip |
[fc2] Encode the string used for the md5 checksum
In python 3 it must be a bytes object.
Diffstat (limited to 'youtube_dl/extractor/fc2.py')
-rw-r--r-- | youtube_dl/extractor/fc2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/fc2.py b/youtube_dl/extractor/fc2.py index ca8993241..fe1cf052c 100644 --- a/youtube_dl/extractor/fc2.py +++ b/youtube_dl/extractor/fc2.py @@ -36,7 +36,7 @@ class FC2IE(InfoExtractor): thumbnail = self._og_search_thumbnail(webpage) refer = url.replace('/content/', '/a/content/') - mimi = hashlib.md5(video_id + '_gGddgPfeaf_gzyr').hexdigest() + mimi = hashlib.md5((video_id + '_gGddgPfeaf_gzyr').encode('utf-8')).hexdigest() info_url = ( "http://video.fc2.com/ginfo.php?mimi={1:s}&href={2:s}&v={0:s}&fversion=WIN%2011%2C6%2C602%2C180&from=2&otag=0&upid={0:s}&tk=null&". |