diff options
author | felix <felix.von.s@posteo.de> | 2016-11-12 21:52:02 +0100 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-12-30 07:23:41 +0700 |
commit | 8056c8542d008ac2f103b4fcb862dc1ad78dc8fc (patch) | |
tree | 2714ba2858016bca3301bef8a6de5f4573f7e430 /youtube_dl/extractor/generic.py | |
parent | 2501d41ef4b9ed0349cf4f9838e12873350e60d5 (diff) |
[mediasite] Add extractor, subsume sandia and collegerama extractors
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index c7b609215..d5622c823 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2883,6 +2883,16 @@ class GenericIE(InfoExtractor): return self.playlist_from_matches( vshare_urls, video_id, video_title, ie=VShareIE.ie_key()) + # Look for Mediasite embeds + mobj = re.search(r'''(?xi) + <iframe[^>]+src="((?:https?://[a-z0-9\-\.:\[\]]+)? + /Mediasite/Play/[0-9a-f]{32,34}(?:\?.*?)?)" + ''', webpage) + if mobj is not None: + return self.url_result(smuggle_url( + compat_urlparse.urljoin(url, unescapeHTML(mobj.group(1))), + { 'UrlReferrer': url }), 'Livestream') + def merge_dicts(dict1, dict2): merged = {} for k, v in dict1.items(): |