From 146cc4114a798e5f3ce423c01dd0a43cec811d61 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 6 Dec 2021 23:24:42 +0530 Subject: [PATCH] bugfix for 63ccf4ff1a953e1b2a9422406cf8ad3f8aae4cbc --- yt_dlp/extractor/niconico.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/niconico.py b/yt_dlp/extractor/niconico.py index 4fcf1d8ed..ee888e9d3 100644 --- a/yt_dlp/extractor/niconico.py +++ b/yt_dlp/extractor/niconico.py @@ -675,16 +675,16 @@ def _entries(self, url, item_id, query=None, note='Downloading page %(page)s'): if not results: break + def _search_results(self, query): + return self._entries( + self._proto_relative_url(f'//www.nicovideo.jp/search/{query}'), query) + class NicovideoSearchIE(NicovideoSearchBaseIE, SearchInfoExtractor): IE_DESC = 'Nico video search' IE_NAME = 'nicovideo:search' _SEARCH_KEY = 'nicosearch' - def _search_results(self, query): - return self._entries( - self._proto_relative_url(f'//www.nicovideo.jp/search/{query}'), query) - class NicovideoSearchURLIE(NicovideoSearchBaseIE): IE_NAME = f'{NicovideoSearchIE.IE_NAME}_url'