diff options
author | Sergey M․ <[email protected]> | 2021-05-16 20:50:32 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2021-05-16 20:50:32 +0700 |
commit | 286e01ce30b4d4d7a631512c3d1f983b30d9059c (patch) | |
tree | 4066f807148454003804871301cf3b46b09f03bb | |
parent | 8536dcafd82380c006a25409bdc2c3dc0d14195c (diff) | |
download | youtube-dl-286e01ce30b4d4d7a631512c3d1f983b30d9059c.tar.gz youtube-dl-286e01ce30b4d4d7a631512c3d1f983b30d9059c.zip |
[generic] Add support for sibnet embeds
-rw-r--r-- | youtube_dl/extractor/generic.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 648a58c77..7b6f07318 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -126,6 +126,7 @@ from .viqeo import ViqeoIE from .expressen import ExpressenIE from .zype import ZypeIE from .odnoklassniki import OdnoklassnikiIE +from .vk import VKIE from .kinja import KinjaEmbedIE from .arcpublishing import ArcPublishingIE from .medialaan import MedialaanIE @@ -2248,6 +2249,11 @@ class GenericIE(InfoExtractor): }, 'playlist_mincount': 52, }, + { + # Sibnet embed (https://help.sibnet.ru/?sibnet_video_embed) + 'url': 'https://phpbb3.x-tk.ru/bbcode-video-sibnet-t24.html', + 'only_matching': True, + }, ] def report_following_redirect(self, new_url): @@ -2777,6 +2783,11 @@ class GenericIE(InfoExtractor): if odnoklassniki_url: return self.url_result(odnoklassniki_url, OdnoklassnikiIE.ie_key()) + # Look for sibnet embedded player + sibnet_urls = VKIE._extract_sibnet_urls(webpage) + if sibnet_urls: + return self.playlist_from_matches(sibnet_urls, video_id, video_title) + # Look for embedded ivi player mobj = re.search(r'<embed[^>]+?src=(["\'])(?P<url>https?://(?:www\.)?ivi\.ru/video/player.+?)\1', webpage) if mobj is not None: |