diff options
author | Déstin Reed <trox1972@users.noreply.github.com> | 2016-08-17 12:45:24 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-18 21:29:27 +0700 |
commit | b0c8f2e9c8946f8aab4be0d1435e504aac0d317f (patch) | |
tree | 27c35cd32695a4192df09f7c12b80b20893240ee /youtube_dl/extractor/dbtv.py | |
parent | 51815886a98503593524ec6ffa778ff19d840e2a (diff) |
[DBTV:generic] Add support for embeds
Diffstat (limited to 'youtube_dl/extractor/dbtv.py')
-rw-r--r-- | youtube_dl/extractor/dbtv.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/dbtv.py b/youtube_dl/extractor/dbtv.py index caff8842e..73dba5e2a 100644 --- a/youtube_dl/extractor/dbtv.py +++ b/youtube_dl/extractor/dbtv.py @@ -38,6 +38,12 @@ class DBTVIE(InfoExtractor): 'only_matching': True, }] + @staticmethod + def _extract_urls(webpage): + return [url for _, url in re.findall( + r'<iframe[^>]+src=(["\'])((?:https?:)?//(?:www\.)?dbtv\.no/lazyplayer/\d+.*?)\1', + webpage)] + def _real_extract(self, url): video_id, display_id = re.match(self._VALID_URL, url).groups() |