From 391f1ac4b49d06cf09f7223f72714661231d7aa1 Mon Sep 17 00:00:00 2001 From: playma Date: Mon, 7 Oct 2019 11:15:53 +0800 Subject: [PATCH] Use query in _download_json --- youtube_dl/extractor/fc2.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/fc2.py b/youtube_dl/extractor/fc2.py index a8a025871..300906a9f 100644 --- a/youtube_dl/extractor/fc2.py +++ b/youtube_dl/extractor/fc2.py @@ -27,7 +27,7 @@ class FC2IE(InfoExtractor): 'md5': 'a6ebe8ebe0396518689d963774a54eb7', 'info_dict': { 'id': '20121103kUan1KHs', - 'ext': 'flv', + 'ext': 'mp4', 'title': 'Boxing again with Puff', }, }, { @@ -103,7 +103,13 @@ class FC2IE(InfoExtractor): if title_info: title = title_info[0] - meta = self._download_json('https://video.fc2.com/api/v3/videoplaylist/%s?sh=1&fs=0' % video_id, video_id) + meta = self._download_json( + 'https://video.fc2.com/api/v3/videoplaylist/%s' % video_id, + video_id, + query={ + 'sh': 1, + 'fs': 0, + }) video_url = 'https://video.fc2.com' + try_get(meta, lambda x: x['playlist']['nq'], compat_str) return {