aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/dbtv.py
diff options
context:
space:
mode:
authorDéstin Reed <trox1972@users.noreply.github.com>2016-08-17 12:45:24 +0200
committerSergey M․ <dstftw@gmail.com>2016-08-18 21:29:27 +0700
commitb0c8f2e9c8946f8aab4be0d1435e504aac0d317f (patch)
tree27c35cd32695a4192df09f7c12b80b20893240ee /youtube_dl/extractor/dbtv.py
parent51815886a98503593524ec6ffa778ff19d840e2a (diff)
downloadyoutube-dl-b0c8f2e9c8946f8aab4be0d1435e504aac0d317f.tar.xz
[DBTV:generic] Add support for embeds
Diffstat (limited to 'youtube_dl/extractor/dbtv.py')
-rw-r--r--youtube_dl/extractor/dbtv.py6
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()