remove parameter max_results from all capabilities

This commit is contained in:
Romain Bignon 2013-07-27 23:29:20 +02:00
commit b99d599aa9
30 changed files with 84 additions and 80 deletions

View file

@ -42,10 +42,9 @@ class GroovesharkBackend(BaseBackend, ICapVideo):
with self.browser:
video.thumbnail.data = self.browser.readurl(video.thumbnail.url)
def search_videos(self, pattern, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, max_results=10):
def search_videos(self, pattern, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False):
with self.browser:
for video in self.browser.search_videos(pattern, max_results):
yield video
return self.browser.search_videos(pattern)
def get_video(self, _id):
with self.browser: