gdcvault: use is_on_page() call

Signed-off-by: François Revol <revol@free.fr>
This commit is contained in:
François Revol 2013-03-17 22:30:52 +01:00 committed by Florent
commit 667879518a

View file

@ -81,7 +81,7 @@ class GDCVaultBrowser(BaseBrowser):
def get_video(self, url, video=None):
self.location(url)
# redirects to /login means the video is not public
if not isinstance(self.page, VideoPage):
if not self.is_on_page(VideoPage):
raise BrowserUnavailable('Requires account')
return self.page.get_video(video)