[francetelevisions] add option to get video from an url
this will allow to do things like that : videoob -d -b francetelevisions download http://pluzz.francetv.fr/videos/faites_entrer_l_accuse.html
This commit is contained in:
parent
a7b9b6e9cc
commit
6c550ea5a7
3 changed files with 13 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ from weboob.tools.backend import Module
|
|||
|
||||
from .browser import PluzzBrowser
|
||||
|
||||
import re
|
||||
|
||||
__all__ = ['PluzzModule']
|
||||
|
||||
|
|
@ -38,6 +39,9 @@ class PluzzModule(Module, CapVideo, CapCollection):
|
|||
BROWSER = PluzzBrowser
|
||||
|
||||
def get_video(self, _id):
|
||||
m = re.match('http://pluzz.francetv.fr/(videos/.*)', _id)
|
||||
if m:
|
||||
return self.browser.get_video_from_url(m.group(1))
|
||||
return self.browser.get_video(_id)
|
||||
|
||||
def search_videos(self, pattern, sortby=CapVideo.SEARCH_RELEVANCE, nsfw=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue