[arte:+7] Relax _VALID_URL (closes #12837)
authorSergey M․ <dstftw@gmail.com>
Tue, 25 Apr 2017 18:55:29 +0000 (01:55 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 25 Apr 2017 18:55:29 +0000 (01:55 +0700)
youtube_dl/extractor/arte.py

index 69a23e88c5b08738a3ce66cce47215fe58e4fcc0..56baef29d4f644c1b52c7d2e5f26fcca7e89e9e4 100644 (file)
@@ -180,7 +180,7 @@ 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)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
+    _VALID_URL = r'https?://(?:(?:www|sites)\.)?arte\.tv/(?:[^/]+/)?(?P<lang>fr|de|en|es)/(?:videos/)?(?:[^/]+/)*(?P<id>[^/?#&]+)'
 
     _TESTS = [{
         'url': 'http://www.arte.tv/guide/de/sendungen/XEN/xenius/?vid=055918-015_PLUS7-D',
@@ -188,6 +188,9 @@ class ArteTVPlus7IE(ArteTVBaseIE):
     }, {
         'url': 'http://sites.arte.tv/karambolage/de/video/karambolage-22',
         'only_matching': True,
+    }, {
+        'url': 'http://www.arte.tv/de/videos/048696-000-A/der-kluge-bauch-unser-zweites-gehirn',
+        'only_matching': True,
     }]
 
     @classmethod