[youjizz] Min pattern size for search is 3 characters
This commit is contained in:
parent
5250a02638
commit
45de52d84d
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ class YoujizzBrowser(PagesBrowser):
|
|||
return self.page.get_video(video)
|
||||
|
||||
def search_videos(self, pattern):
|
||||
if len(pattern) < 3:
|
||||
raise ValueError('Pattern to short (min length : 3 characters)')
|
||||
|
||||
self.search.go(pattern=pattern, pagenum=1)
|
||||
assert self.search.is_here(pattern=pattern, pagenum=1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue