1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

fix for python32

This commit is contained in:
Ocha 2018-11-30 08:15:08 +00:00
parent d788a30e68
commit b117475a80

View File

@ -299,7 +299,7 @@ class NiconicoIE(InfoExtractor):
# 'http://flapi.nicovideo.jp/api/getflv/' + video_id + '?as3=1', # 'http://flapi.nicovideo.jp/api/getflv/' + video_id + '?as3=1',
# video_id, 'Downloading flv info') # video_id, 'Downloading flv info')
# Nov 2018: the method above no longer returns the correct swf address; use below instead # Nov 2018: the method above no longer returns the correct swf address; use below instead
flv_info_webpage = watch_api_data.get('flashvars', {}).get(u'flvInfo') flv_info_webpage = watch_api_data.get('flashvars', {}).get('flvInfo')
flv_info_webpage = compat_urllib_parse.unquote(flv_info_webpage) flv_info_webpage = compat_urllib_parse.unquote(flv_info_webpage)
flv_info = compat_urlparse.parse_qs(flv_info_webpage) flv_info = compat_urlparse.parse_qs(flv_info_webpage)
if 'url' not in flv_info: if 'url' not in flv_info: