Commits

Anonymous committed 228d139

Changed ytsearchall to retrieve max 1000 results

Comments (0)

Files changed (1)

 	_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)
 		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)