From fd9288c315b10f6a741d435485028ce54eee4b24 Mon Sep 17 00:00:00 2001 From: "dannyc@omega" Date: Mon, 6 Apr 2009 17:39:16 -0700 Subject: [PATCH] Changed ytsearchall to retrieve max 1000 results --- youtube-dl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' _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)