1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 18:02:53 +08:00

[francetv] Relax _VALID_URL

This commit is contained in:
Sergey M․ 2017-06-01 00:15:15 +07:00
parent 87b5184a0d
commit 4489d41816
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -112,7 +112,7 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
class FranceTVIE(FranceTVBaseInfoExtractor): class FranceTVIE(FranceTVBaseInfoExtractor):
_VALID_URL = r'https?://(?:(?:www\.)?france\.tv|mobile\.france\.tv)/(?:[^/]+/)+(?P<id>[^/]+)\.html' _VALID_URL = r'https?://(?:(?:www\.)?france\.tv|mobile\.france\.tv)/(?:[^/]+/)*(?P<id>[^/]+)\.html'
_TESTS = [{ _TESTS = [{
'url': 'https://www.france.tv/france-2/13h15-le-dimanche/140921-les-mysteres-de-jesus.html', 'url': 'https://www.france.tv/france-2/13h15-le-dimanche/140921-les-mysteres-de-jesus.html',
@ -157,6 +157,9 @@ class FranceTVIE(FranceTVBaseInfoExtractor):
}, { }, {
'url': 'https://mobile.france.tv/france-5/c-dans-l-air/137347-emission-du-vendredi-12-mai-2017.html', 'url': 'https://mobile.france.tv/france-5/c-dans-l-air/137347-emission-du-vendredi-12-mai-2017.html',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://www.france.tv/142749-rouge-sang.html',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):