projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[DBTV:generic] Add support for embeds
[youtube-dl]
/
youtube_dl
/
extractor
/
dbtv.py
diff --git
a/youtube_dl/extractor/dbtv.py
b/youtube_dl/extractor/dbtv.py
index caff8842e9432f5737f7fee247c943c4a0685920..73dba5e2aea481afa536bc24dc8dc0b936fb30e0 100644
(file)
--- a/
youtube_dl/extractor/dbtv.py
+++ b/
youtube_dl/extractor/dbtv.py
@@
-38,6
+38,12
@@
class DBTVIE(InfoExtractor):
'only_matching': True,
}]
'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()
def _real_extract(self, url):
video_id, display_id = re.match(self._VALID_URL, url).groups()