From 9f3eefd342a88e22c7e66c8d8dab7bd62b008193 Mon Sep 17 00:00:00 2001 From: playma Date: Fri, 27 Sep 2019 08:59:04 +0800 Subject: [PATCH] Revmove duplicate code --- youtube_dl/extractor/fc2.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/youtube_dl/extractor/fc2.py b/youtube_dl/extractor/fc2.py index ab1b10f49..692ca76b8 100644 --- a/youtube_dl/extractor/fc2.py +++ b/youtube_dl/extractor/fc2.py @@ -98,15 +98,11 @@ class FC2IE(InfoExtractor): info_webpage = self._download_webpage( info_url, video_id, note='Downloading info page') info = compat_urlparse.parse_qs(info_webpage) - - video_info_url = 'https://video.fc2.com/api/v3/videoplaylist/{}?sh=1&fs=0'.format(video_id) - info_webpage = self._download_webpage( - info_url, video_id, note='Downloading info page') - info = compat_urlparse.parse_qs(info_webpage) title_info = info.get('title') if title_info: title = title_info[0] + video_info_url = 'https://video.fc2.com/api/v3/videoplaylist/{}?sh=1&fs=0'.format(video_id) meta = self._download_json( video_info_url, video_id,