[ina] fix : site changed
This commit is contained in:
parent
11efe2d85d
commit
91f11bc948
5 changed files with 52 additions and 104 deletions
|
|
@ -21,7 +21,7 @@
|
|||
from weboob.tools.browser import BaseBrowser
|
||||
from weboob.tools.browser.decorators import id2url
|
||||
|
||||
from .pages.video import VideoPage, BoutiqueVideoPage
|
||||
from .pages.video import VideoPage
|
||||
from .pages.search import SearchPage
|
||||
from .video import InaVideo
|
||||
|
||||
|
|
@ -31,14 +31,14 @@ __all__ = ['InaBrowser']
|
|||
|
||||
class InaBrowser(BaseBrowser):
|
||||
DOMAIN = 'ina.fr'
|
||||
PAGES = {'http://boutique\.ina\.fr/(video|audio)/.+\.html': BoutiqueVideoPage,
|
||||
'http://www\.ina\.fr/.+\.html': VideoPage,
|
||||
PAGES = {'http://player.ina.fr/notices/.+\.mrss': (VideoPage, 'xml'),
|
||||
'http://boutique\.ina\.fr/recherche/.+': SearchPage,
|
||||
}
|
||||
}
|
||||
|
||||
@id2url(InaVideo.id2url)
|
||||
def get_video(self, url, video=None):
|
||||
self.location(url)
|
||||
#assert self.is_on_page(VideoPage)
|
||||
return self.page.get_video(video)
|
||||
|
||||
def search_videos(self, pattern):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue