diff options
author | nixxo <c.nixxo@gmail.com> | 2020-10-28 20:32:28 +0100 |
---|---|---|
committer | nixxo <c.nixxo@gmail.com> | 2020-10-28 20:32:28 +0100 |
commit | a85e131b48ac618c9b5bd82a0ed5e288d095fb47 (patch) | |
tree | 160cb8d8c841b8cc8a427a361b8c195587a37cae /youtube_dlc/extractor/generic.py | |
parent | ddb77f30ee597aa5d23079fe6654b7e2e4a91656 (diff) |
[rcs] Add new extractor
Diffstat (limited to 'youtube_dlc/extractor/generic.py')
-rw-r--r-- | youtube_dlc/extractor/generic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/generic.py b/youtube_dlc/extractor/generic.py index aba06b328..1641934f4 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 .rcs import RCSEmbedsIE class GenericIE(InfoExtractor): @@ -3213,6 +3214,12 @@ class GenericIE(InfoExtractor): return self.playlist_from_matches( zype_urls, video_id, video_title, ie=ZypeIE.ie_key()) + # Look for RCS media group embeds + rcs_urls = RCSEmbedsIE._extract_urls(webpage) + if rcs_urls: + return self.playlist_from_matches( + rcs_urls, video_id, video_title, ie=RCSEmbedsIE.ie_key()) + # Look for HTML5 media entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls') if entries: |