diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-09 00:23:35 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-09 00:23:35 +0600 |
commit | bab19a8e91153705d6600fe1d1a0b0aa0bf93bb3 (patch) | |
tree | 0cdb80367f24780cb52df850cc7b07ce6aaae9eb /youtube_dl/extractor/svt.py | |
parent | 322915014f0378e2675a2a17cd67fe89a6e6a7d7 (diff) |
[extractor/generic] Add support for svt embeds (Closes #5622)
Diffstat (limited to 'youtube_dl/extractor/svt.py')
-rw-r--r-- | youtube_dl/extractor/svt.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/svt.py b/youtube_dl/extractor/svt.py index 732f02048..fc20f664b 100644 --- a/youtube_dl/extractor/svt.py +++ b/youtube_dl/extractor/svt.py @@ -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') |