diff options
author | Tom-Oliver Heidel <github@tom-oliver.eu> | 2020-11-30 02:25:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 02:25:38 +0100 |
commit | 284ec6f48a7735a229b31c853c2bc3b5b9135024 (patch) | |
tree | de20372d0fe89beaf96f26c595f7479ad4fc0903 /youtube_dlc/extractor/bitchute.py | |
parent | bccdb02e9351e7f507135c9a4ccd4211e5a325bb (diff) | |
parent | 097f1663a90b6db14d31102c690cc33448a47cf9 (diff) | |
download | hypervideo-pre-284ec6f48a7735a229b31c853c2bc3b5b9135024.tar.lz hypervideo-pre-284ec6f48a7735a229b31c853c2bc3b5b9135024.tar.xz hypervideo-pre-284ec6f48a7735a229b31c853c2bc3b5b9135024.zip |
Merge pull request #246 from pukkandan/bitchute-embed
Detect embedded bitchute videos
Diffstat (limited to 'youtube_dlc/extractor/bitchute.py')
-rw-r--r-- | youtube_dlc/extractor/bitchute.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/bitchute.py b/youtube_dlc/extractor/bitchute.py index 92fc70b5a..94219a138 100644 --- a/youtube_dlc/extractor/bitchute.py +++ b/youtube_dlc/extractor/bitchute.py @@ -36,6 +36,14 @@ class BitChuteIE(InfoExtractor): 'only_matching': True, }] + @staticmethod + def _extract_urls(webpage): + return [ + mobj.group('url') + for mobj in re.finditer( + r'<(?:script|iframe)[^>]+\bsrc=(["\'])(?P<url>%s)' % BitChuteIE._VALID_URL, + webpage)] + def _real_extract(self, url): video_id = self._match_id(url) |