[eagleplatform] Improve embed detection and extract in separate routine (Closes #9926)
This commit is contained in:
parent
70157c2c43
commit
06a96da15b
2 changed files with 12 additions and 4 deletions
|
@ -50,6 +50,14 @@ class EaglePlatformIE(InfoExtractor):
|
|||
'skip': 'Georestricted',
|
||||
}]
|
||||
|
||||
@staticmethod
|
||||
def _extract_url(webpage):
|
||||
mobj = re.search(
|
||||
r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//.+?\.media\.eagleplatform\.com/index/player\?.+?)\1',
|
||||
webpage)
|
||||
if mobj is not None:
|
||||
return mobj.group('url')
|
||||
|
||||
@staticmethod
|
||||
def _handle_error(response):
|
||||
status = int_or_none(response.get('status', 200))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue