Fix getting latest francetelevisions videos

This commit is contained in:
Laurent Bachelier 2012-03-16 00:09:56 +01:00
commit ceac11153d

View file

@ -34,7 +34,7 @@ __all__ = ['PluzzBrowser']
class PluzzBrowser(BaseBrowser):
DOMAIN = 'pluzz.fr'
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/[-\w]+/.*': IndexPage,
r'http://[w\.]*pluzz.fr/((?!recherche).+)\.html': VideoPage,
@ -55,6 +55,9 @@ class PluzzBrowser(BaseBrowser):
return video
def home(self):
self.location('/replay/1')
def search_videos(self, pattern):
if not pattern:
self.home()