[JWPlatform] Support iframes
Support content.jwplatform... src attributes inside <iframe> tags in addition to <script> tags. Just a regexp change. Add a test (currently Generic_72).
This commit is contained in:
parent
2688664762
commit
939be9adfe
2 changed files with 13 additions and 1 deletions
|
@ -24,7 +24,7 @@ class JWPlatformIE(InfoExtractor):
|
|||
@staticmethod
|
||||
def _extract_url(webpage):
|
||||
mobj = re.search(
|
||||
r'<script[^>]+?src=["\'](?P<url>(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})',
|
||||
r'<(script|iframe)[^>]+?src=["\'](?P<url>(?:https?:)?//content.jwplatform.com/players/[a-zA-Z0-9]{8})',
|
||||
webpage)
|
||||
if mobj:
|
||||
return mobj.group('url')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue