gdcvault: use is_on_page() call
Signed-off-by: François Revol <revol@free.fr>
This commit is contained in:
parent
8a07b7a9ce
commit
667879518a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue