From b117475a8084934101ad2ba1d322f2f74f8e1417 Mon Sep 17 00:00:00 2001 From: Ocha <1356318+ochachacha@users.noreply.github.com> Date: Fri, 30 Nov 2018 08:15:08 +0000 Subject: [PATCH] fix for python32 --- youtube_dl/extractor/niconico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index 9fe904756..e7e54ca49 100644 --- a/youtube_dl/extractor/niconico.py +++ b/youtube_dl/extractor/niconico.py @@ -299,7 +299,7 @@ class NiconicoIE(InfoExtractor): # 'http://flapi.nicovideo.jp/api/getflv/' + video_id + '?as3=1', # video_id, 'Downloading flv info') # 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 = compat_urlparse.parse_qs(flv_info_webpage) if 'url' not in flv_info: