2
0
Эх сурвалжийг харах

[tv4] Relax _VALID_URL (closes #14206)

Sergey M․ 8 жил өмнө
parent
commit
319fc70676

+ 5 - 1
youtube_dl/extractor/tv4.py

@@ -18,7 +18,7 @@ class TV4IE(InfoExtractor):
             tv4\.se/(?:[^/]+)/klipp/(?:.*)-|
             tv4\.se/(?:[^/]+)/klipp/(?:.*)-|
             tv4play\.se/
             tv4play\.se/
             (?:
             (?:
-                (?:program|barn)/(?:[^\?]+)\?video_id=|
+                (?:program|barn)/(?:[^/]+/|(?:[^\?]+)\?video_id=)|
                 iframe/video/|
                 iframe/video/|
                 film/|
                 film/|
                 sport/|
                 sport/|
@@ -63,6 +63,10 @@ class TV4IE(InfoExtractor):
             'url': 'http://www.tv4play.se/barn/looney-tunes?video_id=3062412',
             'url': 'http://www.tv4play.se/barn/looney-tunes?video_id=3062412',
             'only_matching': True,
             'only_matching': True,
         },
         },
+        {
+            'url': ' http://www.tv4play.se/program/farang/3922081',
+            'only_matching': True,
+        }
     ]
     ]
 
 
     def _real_extract(self, url):
     def _real_extract(self, url):