[extractor/generic] Add support for svt embeds (Closes #5622)
This commit is contained in:
parent
322915014f
commit
bab19a8e91
2 changed files with 13 additions and 0 deletions
|
@ -64,6 +64,13 @@ class SVTIE(SVTBaseIE):
|
|||
},
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def _extract_url(webpage):
|
||||
mobj = re.search(
|
||||
r'(?:<iframe src|href)="(?P<url>%s[^"]*)"' % SVTIE._VALID_URL, webpage)
|
||||
if mobj:
|
||||
return mobj.group('url')
|
||||
|
||||
def _real_extract(self, url):
|
||||
mobj = re.match(self._VALID_URL, url)
|
||||
widget_id = mobj.group('widget_id')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue