[DBTV:generic] Add support for embeds
[youtube-dl] / youtube_dl / extractor / dbtv.py
index caff8842e9432f5737f7fee247c943c4a0685920..73dba5e2aea481afa536bc24dc8dc0b936fb30e0 100644 (file)
@@ -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()