add support for ls command (videoob -b arretsurimages ls latest)

Signed-off-by: franek <franek@chicour.net>
This commit is contained in:
franek 2013-04-01 12:32:54 +02:00 committed by Florent
commit 145f3cf2c0
3 changed files with 27 additions and 4 deletions

View file

@ -64,5 +64,10 @@ class ArretSurImagesBrowser(BaseBrowser):
self.page.login(self.username, self.password)
if not self.is_logged():
raise BrowserIncorrectPassword()
raise BrowserIncorrectPassword()
def latest_videos(self):
self.location(self.buildurl('/emissions.php'))
assert self.is_on_page(IndexPage)
return self.page.iter_videos()