diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-21 20:55:05 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-21 20:55:05 +0600 |
commit | ed553379dfd4d564f8335defc1067eeecd536f04 (patch) | |
tree | e3b069cbc12a5686514bfc51816423b84f4bd3cc /youtube_dl/extractor/youtube.py | |
parent | 5c1e6f69c421c244139b1f4c6d2759dadfbc1abd (diff) |
[youtube:ytsearch] Temporary workaround (#5483)
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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), |