translate abstract methods to new API
This commit is contained in:
parent
384e3521c7
commit
d61d26dda9
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ import ClientForm
|
|||
from weboob.tools.browser import BasePage
|
||||
|
||||
class PornPage(BasePage):
|
||||
def loaded(self):
|
||||
def on_loaded(self):
|
||||
try:
|
||||
self.browser.select_form(nr=0)
|
||||
self.browser.submit(name='user_choice')
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from weboob.capabilities.video import Video
|
|||
class VideoPage(PornPage):
|
||||
URL_REGEXP = re.compile("https?://[w\.]*youporn.com/watch/(\d+)/?.*")
|
||||
|
||||
def loaded(self):
|
||||
def on_loaded(self):
|
||||
if not PornPage.loaded(self):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue