mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/generic] Remove duplicate limelight code
This commit is contained in:
parent
76d5a36391
commit
946826eec7
1 changed files with 0 additions and 23 deletions
|
@ -2519,29 +2519,6 @@ def _real_extract(self, url):
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
limelight_urls, video_id, video_title, video_description)
|
limelight_urls, video_id, video_title, video_description)
|
||||||
|
|
||||||
mobj = re.search(r'LimelightPlayer\.doLoad(Media|Channel|ChannelList)\(["\'](?P<id>[a-z0-9]{32})', webpage)
|
|
||||||
if mobj:
|
|
||||||
lm = {
|
|
||||||
'Media': 'media',
|
|
||||||
'Channel': 'channel',
|
|
||||||
'ChannelList': 'channel_list',
|
|
||||||
}
|
|
||||||
return self.url_result(smuggle_url('limelight:%s:%s' % (
|
|
||||||
lm[mobj.group(1)], mobj.group(2)), {'source_url': url}),
|
|
||||||
'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(smuggle_url(
|
|
||||||
'limelight:media:%s' % mobj.group('id'),
|
|
||||||
{'source_url': url}), 'LimelightMedia', mobj.group('id'))
|
|
||||||
|
|
||||||
# Look for Anvato embeds
|
# Look for Anvato embeds
|
||||||
anvato_urls = AnvatoIE._extract_urls(self, webpage, video_id)
|
anvato_urls = AnvatoIE._extract_urls(self, webpage, video_id)
|
||||||
if anvato_urls:
|
if anvato_urls:
|
||||||
|
|
Loading…
Reference in a new issue