From 335f037e80b69d8ca68fc3df79d5d3cd6ed7dac3 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 31 Dec 2018 16:18:51 -0800 Subject: [PATCH] Added query argument --- youtube_dl/extractor/niconico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index 708e819bf..6f22f9c8a 100644 --- a/youtube_dl/extractor/niconico.py +++ b/youtube_dl/extractor/niconico.py @@ -506,7 +506,7 @@ class NicovideoIE(SearchInfoExtractor): def _get_entries_for_date(self, url, query, date, pageNumber=1): while True: link = url + "?page=" + str(pageNumber) + "&start=" + str(date) + "&end=" + str(date) - results = self._download_webpage(link, "None", note='Extracting results from page %s for date %s' % (pageNumber, date)) + results = self._download_webpage(link, "None", query={"Search_key": query}, note='Extracting results from page %s for date %s' % (pageNumber, date)) entries = [] r = re.findall(r'(?<=data-video-id=)["\']?(?P.*?)(?=["\'])', results)