diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-11-20 02:13:21 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-11-20 02:13:21 +0700 |
commit | 8f8f182d0baf04c31e95582aa7eedea940e0cdd2 (patch) | |
tree | 57a7593413d68411448706759c3e37f5ff22d1d5 /youtube_dl/extractor | |
parent | 2176e466e0261209e52a771e66d098ef8ed41e10 (diff) |
[extractor/generic] Improve limelight embeds support
Diffstat (limited to 'youtube_dl/extractor')
-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 bde65fa27..f9707c155 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2232,6 +2232,16 @@ class GenericIE(InfoExtractor): return self.url_result('limelight:%s:%s' % ( lm[mobj.group(1)], mobj.group(2)), 'Limelight%s' % mobj.group(1), mobj.group(2)) + mobj = re.search( + r'''(?sx) + <object[^>]+class=(["\'])LimelightEmbeddedPlayerFlash\1[^>]*>.*? + <param[^>]+ + name=(["\'])flashVars\2[^>]+ + value=(["\'])(?:(?!\3).)*mediaId=(?P<id>[a-z0-9]{32}) + ''', webpage) + if mobj: + return self.url_result('limelight:media:%s' % mobj.group('id')) + # Look for AdobeTVVideo embeds mobj = re.search( r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]', |