]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/dbtv.py
Update changelog
[youtubedl] / youtube_dl / extractor / dbtv.py
index caff8842e9432f5737f7fee247c943c4a0685920..6d880d43d6507077018f9489749947d83a36f64b 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/(?:lazy)?player/\d+.*?)\1',
+            webpage)]
+
     def _real_extract(self, url):
         video_id, display_id = re.match(self._VALID_URL, url).groups()