]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[arte:+7] Simplify _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 18 Jun 2016 15:23:48 +0000 (22:23 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 18 Jun 2016 15:23:48 +0000 (22:23 +0700)
youtube_dl/extractor/arte.py

index e602d3673305ef85d491599b257afe52d00b89ae..049f1fa9ed35404acba9e6ad7f1c12f516b436f2 100644 (file)
@@ -180,12 +180,12 @@ class ArteTVBaseIE(InfoExtractor):
 
 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,
     }]