diff options
author | Zenon Mousmoulas <zmousm@users.noreply.github.com> | 2022-01-13 23:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 02:39:52 +0530 |
commit | 71738b14516294d47cfcbfd6a517e148c3917dc7 (patch) | |
tree | 7a8a7de720e496cd779ad1a0797836cb0d1e57cd /yt_dlp/extractor/generic.py | |
parent | 0bb5ac1ac40e202b27af5e16c9e076d0e6eee06c (diff) | |
download | hypervideo-pre-71738b14516294d47cfcbfd6a517e148c3917dc7.tar.lz hypervideo-pre-71738b14516294d47cfcbfd6a517e148c3917dc7.tar.xz hypervideo-pre-71738b14516294d47cfcbfd6a517e148c3917dc7.zip |
[glomex] Add new extractors (#1979)
Original PR: https://github.com/ytdl-org/youtube-dl/pull/30212
Authored by: zmousm
Diffstat (limited to 'yt_dlp/extractor/generic.py')
-rw-r--r-- | yt_dlp/extractor/generic.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index def04a8c3..529edb598 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -101,6 +101,7 @@ from .ustream import UstreamIE from .arte import ArteTVEmbedIE from .videopress import VideoPressIE from .rutube import RutubeIE +from .glomex import GlomexEmbedIE from .limelight import LimelightBaseIE from .anvato import AnvatoIE from .washingtonpost import WashingtonPostIE @@ -1873,6 +1874,18 @@ class GenericIE(InfoExtractor): 'add_ie': [RutubeIE.ie_key()], }, { + 'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes', + 'info_dict': { + 'id': 'v-ch2nkhcirwc9-sf', + 'ext': 'mp4', + 'title': 'md5:786e1e24e06c55993cee965ef853a0c1', + 'description': 'md5:8b517a61d577efe7e36fde72fd535995', + 'timestamp': 1641885019, + 'upload_date': '20220111', + 'duration': 460000, + }, + }, + { # ThePlatform embedded with whitespaces in URLs 'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm', 'only_matching': True, @@ -3464,6 +3477,12 @@ class GenericIE(InfoExtractor): return self.playlist_from_matches( rutube_urls, video_id, video_title, ie=RutubeIE.ie_key()) + # Look for Glomex embeds + glomex_urls = list(GlomexEmbedIE._extract_urls(webpage, url)) + if glomex_urls: + return self.playlist_from_matches( + glomex_urls, video_id, video_title, ie=GlomexEmbedIE.ie_key()) + # Look for WashingtonPost embeds wapo_urls = WashingtonPostIE._extract_urls(webpage) if wapo_urls: |