youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ed553379dfd4d564f8335defc1067eeecd536f04
parent 5c1e6f69c421c244139b1f4c6d2759dadfbc1abd
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 21 Apr 2015 20:55:05 +0600

[youtube:ytsearch] Temporary workaround (#5483)

Diffstat:
Myoutube_dl/extractor/youtube.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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),