[weboob] [PATCH 2/2] gdcvault: use is_on_page() call

François Revol revol at free.fr
Sun Mar 17 22:30:52 CET 2013


Signed-off-by: François Revol <revol at free.fr>
---
 modules/gdcvault/browser.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gdcvault/browser.py b/modules/gdcvault/browser.py
index 2aeb224..940170d 100644
--- a/modules/gdcvault/browser.py
+++ b/modules/gdcvault/browser.py
@@ -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)
 
-- 
1.7.10.4




More information about the weboob mailing list