aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordannyc@omega <dannyc@omega>2009-04-06 17:39:16 -0700
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:24:07 +0100
commitfd9288c315b10f6a741d435485028ce54eee4b24 (patch)
tree91862dd4a209c6bec02e7893c987aef3e35da531
parent1db4ff60542e695892d34729ebef5da4989eff72 (diff)
downloadyoutube-dl-fd9288c315b10f6a741d435485028ce54eee4b24.tar.xz
Changed ytsearchall to retrieve max 1000 results
-rwxr-xr-xyoutube-dl3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 2cddafcf5..e41134546 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -751,6 +751,7 @@ class YoutubeSearchIE(InfoExtractor):
_VIDEO_INDICATOR = r'href="/watch\?v=.+?"'
_MORE_PAGES_INDICATOR = r'>Next</a>'
_youtube_ie = None
+ _max_youtube_results = 1000
def __init__(self, youtube_ie, downloader=None):
InfoExtractor.__init__(self, downloader)
@@ -778,7 +779,7 @@ class YoutubeSearchIE(InfoExtractor):
if prefix == '':
return self._download_n_results(query, 1)
elif prefix == 'all':
- return self._download_n_results(query, -1)
+ return self._download_n_results(query, self._max_youtube_results)
else:
try:
n = int(prefix)