From 5703dfcc71be692dbdbbf1ac57ec074ef928e15b Mon Sep 17 00:00:00 2001 From: grefog Date: Sat, 24 Aug 2019 13:41:10 -0600 Subject: [PATCH] Fix incorrect url parsing and delint niconico.py --- youtube_dl/extractor/niconico.py | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index aeb3659a3..fe4ec1a43 100644 --- a/youtube_dl/extractor/niconico.py +++ b/youtube_dl/extractor/niconico.py @@ -476,26 +476,22 @@ class NiconicoSeriesIE(InfoExtractor): 'url': 'https://www.nicovideo.jp/series/8253', 'info_dict': { 'id': '8253', - 'title' : '弦巻マキと結月ゆかりの未確認ゲーム日和', + 'title': '弦巻マキと結月ゆかりの未確認ゲーム日和', }, - 'playlist_mincount':49, + 'playlist_mincount': 49, } def _real_extract(self, url): - series_id=url.split('/')[-1] - webpage=self._download_webpage(url, series_id) - entries=re.findall(r'(?<=(.*?)',webpage,'title'), + 'title': self._search_regex(r'bodyTitle">(.*?)', webpage, 'title'), } - -