add id2url
This commit is contained in:
parent
7ccf4a01eb
commit
c999c68459
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ from weboob.tools.browser import BaseBrowser
|
||||||
from weboob.tools.browser.decorators import id2url
|
from weboob.tools.browser.decorators import id2url
|
||||||
|
|
||||||
from .pages.video import VideoPage
|
from .pages.video import VideoPage
|
||||||
|
from .video import InaVideo
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['InaBrowser']
|
__all__ = ['InaBrowser']
|
||||||
|
|
@ -30,6 +31,7 @@ class InaBrowser(BaseBrowser):
|
||||||
PAGES = {'http://boutique.ina.fr/video/.+.html': VideoPage,
|
PAGES = {'http://boutique.ina.fr/video/.+.html': VideoPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@id2url(InaVideo.id2url)
|
||||||
def get_video(self, url):
|
def get_video(self, url):
|
||||||
self.location(url)
|
self.location(url)
|
||||||
return self.page.video
|
return self.page.video
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue