aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/generic.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-11-20 14:26:24 +0530
committerpukkandan <pukkandan@gmail.com>2020-11-20 14:26:24 +0530
commit097f1663a90b6db14d31102c690cc33448a47cf9 (patch)
tree7d8bd6a55b738f6207e9199f4b8a807621bd682c /youtube_dlc/extractor/generic.py
parent228385340e9a976f52735078218a9b8ecfe7ae7a (diff)
downloadhypervideo-pre-097f1663a90b6db14d31102c690cc33448a47cf9.tar.lz
hypervideo-pre-097f1663a90b6db14d31102c690cc33448a47cf9.tar.xz
hypervideo-pre-097f1663a90b6db14d31102c690cc33448a47cf9.zip
Detect embedded bitchute videos
Diffstat (limited to 'youtube_dlc/extractor/generic.py')
-rw-r--r--youtube_dlc/extractor/generic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/generic.py b/youtube_dlc/extractor/generic.py
index aba06b328..2ea46da30 100644
--- a/youtube_dlc/extractor/generic.py
+++ b/youtube_dlc/extractor/generic.py
@@ -119,6 +119,7 @@ from .expressen import ExpressenIE
from .zype import ZypeIE
from .odnoklassniki import OdnoklassnikiIE
from .kinja import KinjaEmbedIE
+from .bitchute import BitChuteIE
class GenericIE(InfoExtractor):
@@ -3213,6 +3214,11 @@ class GenericIE(InfoExtractor):
return self.playlist_from_matches(
zype_urls, video_id, video_title, ie=ZypeIE.ie_key())
+ bitchute_urls = BitChuteIE._extract_urls(webpage)
+ if bitchute_urls:
+ return self.playlist_from_matches(
+ bitchute_urls, video_id, video_title, ie=BitChuteIE.ie_key())
+
# Look for HTML5 media
entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls')
if entries: