|
|
@ -675,16 +675,16 @@ class NicovideoSearchBaseIE(InfoExtractor):
|
|
|
|
if not results:
|
|
|
|
if not results:
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _search_results(self, query):
|
|
|
|
|
|
|
|
return self._entries(
|
|
|
|
|
|
|
|
self._proto_relative_url(f'//www.nicovideo.jp/search/{query}'), query)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NicovideoSearchIE(NicovideoSearchBaseIE, SearchInfoExtractor):
|
|
|
|
class NicovideoSearchIE(NicovideoSearchBaseIE, SearchInfoExtractor):
|
|
|
|
IE_DESC = 'Nico video search'
|
|
|
|
IE_DESC = 'Nico video search'
|
|
|
|
IE_NAME = 'nicovideo:search'
|
|
|
|
IE_NAME = 'nicovideo:search'
|
|
|
|
_SEARCH_KEY = 'nicosearch'
|
|
|
|
_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):
|
|
|
|
class NicovideoSearchURLIE(NicovideoSearchBaseIE):
|
|
|
|
IE_NAME = f'{NicovideoSearchIE.IE_NAME}_url'
|
|
|
|
IE_NAME = f'{NicovideoSearchIE.IE_NAME}_url'
|
|
|
|