move id2url to Video class
This commit is contained in:
parent
f7a92d9c72
commit
7bd936c11b
14 changed files with 69 additions and 76 deletions
|
|
@ -23,7 +23,7 @@ import datetime
|
|||
from logging import warning
|
||||
|
||||
from .base import PornPage
|
||||
from weboob.capabilities.video import Video
|
||||
from ..video import YoupornVideo
|
||||
|
||||
class VideoPage(PornPage):
|
||||
URL_REGEXP = re.compile("https?://[w\.]*youporn.com/watch/(\d+)/?.*")
|
||||
|
|
@ -32,10 +32,10 @@ class VideoPage(PornPage):
|
|||
if not PornPage.on_loaded(self):
|
||||
return
|
||||
|
||||
self.video = Video(self.get_id(),
|
||||
self.get_title(),
|
||||
self.get_url(),
|
||||
nsfw=True)
|
||||
self.video = YoupornVideo(self.get_id(),
|
||||
self.get_title(),
|
||||
self.get_url(),
|
||||
nsfw=True)
|
||||
|
||||
self.set_details(self.video)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue