move id2url to Video class
This commit is contained in:
parent
f7a92d9c72
commit
7bd936c11b
14 changed files with 69 additions and 76 deletions
|
|
@ -22,9 +22,9 @@ import urllib
|
|||
|
||||
from weboob.tools.browser import BaseBrowser
|
||||
|
||||
from . import tools
|
||||
from .pages.index import IndexPage
|
||||
from .pages.video import VideoPage
|
||||
from .video import YoupornVideo
|
||||
|
||||
|
||||
__all__ = ['YoupornBrowser']
|
||||
|
|
@ -53,5 +53,5 @@ class YoupornBrowser(BaseBrowser):
|
|||
return self.page.iter_videos()
|
||||
|
||||
def get_video(self, _id):
|
||||
self.location(tools.id2url(_id))
|
||||
self.location(YoupornVideo.id2url(_id))
|
||||
return self.page.video
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue