[arte:future] Fix extraction
[arte] Add support for more "Arte Future" uri
This commit is contained in:
parent
220ee33f2b
commit
24114fee74
|
@ -199,25 +199,26 @@ class ArteTVCreativeIE(ArteTVPlus7IE):
|
||||||
|
|
||||||
class ArteTVFutureIE(ArteTVPlus7IE):
|
class ArteTVFutureIE(ArteTVPlus7IE):
|
||||||
IE_NAME = 'arte.tv:future'
|
IE_NAME = 'arte.tv:future'
|
||||||
_VALID_URL = r'https?://future\.arte\.tv/(?P<lang>fr|de)/(thema|sujet)/.*?#article-anchor-(?P<id>\d+)'
|
_VALID_URL = r'https?://future\.arte\.tv/(?P<lang>fr|de)/(?P<id>.+)'
|
||||||
|
|
||||||
_TEST = {
|
_TESTS = [
|
||||||
'url': 'http://future.arte.tv/fr/sujet/info-sciences#article-anchor-7081',
|
{
|
||||||
'info_dict': {
|
'url': 'http://future.arte.tv/fr/info-sciences/les-ecrevisses-aussi-sont-anxieuses',
|
||||||
'id': '5201',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '050940-028-A',
|
||||||
'title': 'Les champignons au secours de la planète',
|
'ext': 'mp4',
|
||||||
'upload_date': '20131101',
|
'title': 'Les écrevisses aussi peuvent être anxieuses',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
{
|
||||||
|
'url': 'http://future.arte.tv/fr/la-science-est-elle-responsable',
|
||||||
def _real_extract(self, url):
|
'info_dict': {
|
||||||
anchor_id, lang = self._extract_url_info(url)
|
'id': '061982-002-A',
|
||||||
webpage = self._download_webpage(url, anchor_id)
|
'ext': 'mp4',
|
||||||
row = self._search_regex(
|
'title': 'Brian P. Schmidt - Prix Nobel de physique 2011',
|
||||||
r'(?s)id="%s"[^>]*>.+?(<div[^>]*arte_vp_url[^>]*>)' % anchor_id,
|
},
|
||||||
webpage, 'row')
|
}
|
||||||
return self._extract_from_webpage(row, anchor_id, lang)
|
]
|
||||||
|
|
||||||
|
|
||||||
class ArteTVDDCIE(ArteTVPlus7IE):
|
class ArteTVDDCIE(ArteTVPlus7IE):
|
||||||
|
|
Loading…
Reference in New Issue