Fix getting latest francetelevisions videos
This commit is contained in:
parent
e1d3e43a4d
commit
ceac11153d
1 changed files with 4 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ __all__ = ['PluzzBrowser']
|
||||||
class PluzzBrowser(BaseBrowser):
|
class PluzzBrowser(BaseBrowser):
|
||||||
DOMAIN = 'pluzz.fr'
|
DOMAIN = 'pluzz.fr'
|
||||||
ENCODING = 'ISO-8859-1'
|
ENCODING = 'ISO-8859-1'
|
||||||
PAGES = {r'http://[w\.]*pluzz.fr/?': IndexPage,
|
PAGES = {r'http://[w\.]*pluzz.fr/replay/1': IndexPage,
|
||||||
r'http://[w\.]*pluzz.fr/recherche.html.*': IndexPage,
|
r'http://[w\.]*pluzz.fr/recherche.html.*': IndexPage,
|
||||||
r'http://[w\.]*pluzz.fr/[-\w]+/.*': IndexPage,
|
r'http://[w\.]*pluzz.fr/[-\w]+/.*': IndexPage,
|
||||||
r'http://[w\.]*pluzz.fr/((?!recherche).+)\.html': VideoPage,
|
r'http://[w\.]*pluzz.fr/((?!recherche).+)\.html': VideoPage,
|
||||||
|
|
@ -55,6 +55,9 @@ class PluzzBrowser(BaseBrowser):
|
||||||
|
|
||||||
return video
|
return video
|
||||||
|
|
||||||
|
def home(self):
|
||||||
|
self.location('/replay/1')
|
||||||
|
|
||||||
def search_videos(self, pattern):
|
def search_videos(self, pattern):
|
||||||
if not pattern:
|
if not pattern:
|
||||||
self.home()
|
self.home()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue