Fix bug module francetelevisions : remove "latest" feature

"Latest videos" page no longer on new website.
This commit is contained in:
Vincent Texier 2014-12-15 21:56:29 +01:00 committed by Florent
commit 026f3fb712
3 changed files with 1 additions and 30 deletions

View file

@ -30,7 +30,6 @@ class PluzzBrowser(PagesBrowser):
BASEURL = 'http://pluzz.francetv.fr'
index_page = URL(r'recherche\?recherche=(?P<pattern>.*)', IndexPage)
latest_page = URL(r'lesplusrecents', IndexPage)
video_page = URL(r'http://webservices.francetelevisions.fr/tools/getInfosOeuvre/v2/\?idDiffusion=(?P<id>.*)&catalogue=Pluzz', VideoPage)
def search_videos(self, pattern):
@ -48,6 +47,3 @@ class PluzzBrowser(PagesBrowser):
r = self.open(url, stream=True)
buf = r.iter_lines()
return buf
def latest_videos(self):
return self.latest_page.go().iter_videos()