catch errors when page is not found or if video is not yet available
This commit is contained in:
parent
621fc4ba75
commit
95cb438294
2 changed files with 16 additions and 4 deletions
|
|
@ -42,8 +42,11 @@ class PluzzBrowser(BaseBrowser):
|
|||
self.location(url)
|
||||
assert self.is_on_page(VideoPage)
|
||||
|
||||
metaurl = self.page.get_meta_url()
|
||||
id = self.page.get_id()
|
||||
metaurl = self.page.get_meta_url()
|
||||
if metaurl is None:
|
||||
return None
|
||||
|
||||
self.location(metaurl)
|
||||
assert self.is_on_page(MetaVideoPage)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue