diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-05-05 22:12:41 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-05-05 22:12:41 +0200 |
commit | 43b62accbb1b8701b24e4c9103de56e9e33288df (patch) | |
tree | 5bb1c4cab239499c1bb403bb05c4678bab05b98e /youtube_dl | |
parent | be74864aceeb6638cbe435e83a6a581d4bf3e1af (diff) |
GoogleSearchIE: rename _download_n_results to _get_n_results
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 854592df8..d66d64f00 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1465,9 +1465,9 @@ class GoogleSearchIE(InfoExtractor): prefix = mobj.group('prefix') query = mobj.group('query') if prefix == '': - return self._download_n_results(query, 1) + return self._get_n_results(query, 1) elif prefix == 'all': - return self._download_n_results(query, self._max_google_results) + return self._get_n_results(query, self._max_google_results) else: n = int(prefix) if n <= 0: @@ -1475,10 +1475,10 @@ class GoogleSearchIE(InfoExtractor): elif n > self._max_google_results: self._downloader.report_warning(u'gvsearch returns max %i results (you requested %i)' % (self._max_google_results, n)) n = self._max_google_results - return self._download_n_results(query, n) + return self._get_n_results(query, n) - def _download_n_results(self, query, n): - """Downloads a specified number of results for a query""" + def _get_n_results(self, query, n): + """Get a specified number of results for a query""" res = { '_type': 'playlist', |