[arte:+7] Simplify _VALID_URL

This commit is contained in:
Sergey M․ 2016-06-18 22:23:48 +07:00
parent c1823c8ad9
commit 90b6288cce
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -180,12 +180,12 @@ def _extract_from_json_url(self, json_url, video_id, lang, title=None):
class ArteTVPlus7IE(ArteTVBaseIE):
IE_NAME = 'arte.tv:+7'
_VALID_URL = r'https?://(?:(?:www|sites)\.)?arte\.tv/[^/]+/(?P<lang>fr|de|en|es)/(?:(?:sendungen|emissions|embed)/)?(?P<id>[^/]+)/(?P<name>[^/?#&]+)'
_VALID_URL = r'https?://(?:(?:www|sites)\.)?arte\.tv/[^/]+/(?P<lang>fr|de|en|es)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'http://www.arte.tv/guide/de/sendungen/XEN/xenius/?vid=055918-015_PLUS7-D',
'only_matching': True,
}. {
}, {
'url': 'http://sites.arte.tv/karambolage/de/video/karambolage-22',
'only_matching': True,
}]