From: Sergey M․ Date: Sat, 18 Jun 2016 15:23:48 +0000 (+0700) Subject: [arte:+7] Simplify _VALID_URL X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=90b6288cce3e5a433a521bc862d98d31be9624c2;p=youtube-dl [arte:+7] Simplify _VALID_URL --- diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index e602d3673..049f1fa9e 100644 --- a/youtube_dl/extractor/arte.py +++ b/youtube_dl/extractor/arte.py @@ -180,12 +180,12 @@ class ArteTVBaseIE(InfoExtractor): class ArteTVPlus7IE(ArteTVBaseIE): IE_NAME = 'arte.tv:+7' - _VALID_URL = r'https?://(?:(?:www|sites)\.)?arte\.tv/[^/]+/(?Pfr|de|en|es)/(?:(?:sendungen|emissions|embed)/)?(?P[^/]+)/(?P[^/?#&]+)' + _VALID_URL = r'https?://(?:(?:www|sites)\.)?arte\.tv/[^/]+/(?Pfr|de|en|es)/(?:[^/]+/)*(?P[^/?#&]+)' _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, }]