]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[mediasite] Relax _VALID_URL
authorDaan van Vugt <daanvanvugt@gmail.com>
Mon, 17 Dec 2018 17:03:00 +0000 (18:03 +0100)
committerSergey M <dstftw@gmail.com>
Mon, 17 Dec 2018 17:03:00 +0000 (00:03 +0700)
youtube_dl/extractor/mediasite.py

index 84876b883811cc8ad2607de7caed0f621f35f660..de37df0c6d2a7a9eb3b2dbd4d53e5e194da5148b 100644 (file)
@@ -21,7 +21,7 @@ from ..utils import (
 
 
 class MediasiteIE(InfoExtractor):
-    _VALID_URL = r'(?xi)https?://[^/]+/Mediasite/Play/(?P<id>[0-9a-f]{32,34})(?P<query>\?[^#]+|)'
+    _VALID_URL = r'(?xi)https?://[^/]+/Mediasite/(?:Play|Showcase/livebroadcast/Presentation)/(?P<id>[0-9a-f]{32,34})(?P<query>\?[^#]+|)'
     _TESTS = [
         {
             'url': 'https://hitsmediaweb.h-its.org/mediasite/Play/2db6c271681e4f199af3c60d1f82869b1d',
@@ -84,7 +84,11 @@ class MediasiteIE(InfoExtractor):
                 'timestamp': 1333983600,
                 'duration': 7794,
             }
-        }
+        },
+        {
+            'url': 'https://collegerama.tudelft.nl/Mediasite/Showcase/livebroadcast/Presentation/ada7020854f743c49fbb45c9ec7dbb351d',
+            'only_matching': True,
+        },
     ]
 
     # look in Mediasite.Core.js (Mediasite.ContentStreamType[*])