diff options
author | felix <felix.von.s@posteo.de> | 2015-08-29 07:55:20 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-08-29 18:38:23 +0600 |
commit | 8ca31a0e056a7a7b71ea35753504ed0f870e834f (patch) | |
tree | 91111a0b5f126444ef152e2ac426563ac214df85 /youtube_dl/extractor/generic.py | |
parent | 20149a5da195b8ab5e50a4babfa0107ebf279b7f (diff) |
[generic] Look for ScreenwaveMedia embeds
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 376feecae..5d41b6319 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1718,6 +1718,15 @@ class GenericIE(InfoExtractor): if snagfilms_url: return self.url_result(snagfilms_url) + # Look for ScreenwaveMedia embeds + mobj = re.search( + r'<script[^>]+src=[\'"](http://player\d?\.screenwavemedia\.com/player\.php\?id=[A-Za-z0-9-]+)[\'"]', + webpage) + if mobj is not None: + return self.url_result( + unescapeHTML(mobj.group(1)), + 'ScreenwaveMedia') + # Look for AdobeTVVideo embeds mobj = re.search( r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]', |