From: Sergey M․ Date: Tue, 21 Apr 2015 14:55:05 +0000 (+0600) Subject: [youtube:ytsearch] Temporary workaround (#5483) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ed553379dfd4d564f8335defc1067eeecd536f04;p=youtube-dl [youtube:ytsearch] Temporary workaround (#5483) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 52909b0da..4ec39c589 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1517,7 +1517,7 @@ class YoutubeSearchIE(SearchInfoExtractor): while (PAGE_SIZE * pagenum) < limit: result_url = self._API_URL % ( compat_urllib_parse.quote_plus(query.encode('utf-8')), - (PAGE_SIZE * pagenum) + 1) + max((PAGE_SIZE * pagenum) + 1), 2) data_json = self._download_webpage( result_url, video_id='query "%s"' % query, note='Downloading page %s' % (pagenum + 1),