diff options
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(): |