Check is_on_page(VideoPage).
This commit is contained in:
parent
555463c7ae
commit
0d92528b26
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ class YoujizzBrowser(BaseBrowser):
|
||||||
@id2url(YoujizzVideo.id2url)
|
@id2url(YoujizzVideo.id2url)
|
||||||
def get_video(self, url, video=None):
|
def get_video(self, url, video=None):
|
||||||
self.location(url)
|
self.location(url)
|
||||||
|
assert self.is_on_page(VideoPage), 'Should be on video page.'
|
||||||
return self.page.get_video(video)
|
return self.page.get_video(video)
|
||||||
|
|
||||||
def iter_search_results(self, pattern):
|
def iter_search_results(self, pattern):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue