projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1e6f6
)
[youtube:ytsearch] Temporary workaround (#5483)
author
Sergey M․
<dstftw@gmail.com>
Tue, 21 Apr 2015 14:55:05 +0000
(20:55 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 21 Apr 2015 14:55:05 +0000
(20:55 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 52909b0daa945170e2d3ebec6892b9f906f3087e..4ec39c589c0c89c6dda6ba067fdc1c49616f062a 100644
(file)
--- 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),