diff options
author | Daan van Vugt <daanvanvugt@gmail.com> | 2018-12-17 18:03:00 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-12-18 00:03:00 +0700 |
commit | cfd13c4c45f63c408a3e53ac31561c286c9a3acc (patch) | |
tree | 2b123b170f02aea3cef45dea79208de1486d28ef /youtube_dl/extractor/mediasite.py | |
parent | 386d1fea79e861b11c77a7353c07eb162fbb4dae (diff) |
[mediasite] Relax _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/mediasite.py')
-rw-r--r-- | youtube_dl/extractor/mediasite.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mediasite.py b/youtube_dl/extractor/mediasite.py index 84876b883..de37df0c6 100644 --- a/youtube_dl/extractor/mediasite.py +++ b/youtube_dl/extractor/mediasite.py @@ -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[*]) |