1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-21 07:28:52 +00:00

[ie/EasyBroadcastLiveIE] Add extractor

This commit is contained in:
CasperMcFadden95
2025-06-22 14:13:58 +00:00
committed by GitHub
parent 73bf102116
commit 4cc768576f
3 changed files with 86 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import xml.etree.ElementTree
from .common import InfoExtractor
from .commonprotocols import RtmpIE
from .easybroadcast import EasyBroadcastLiveIE
from .youtube import YoutubeIE
from ..compat import compat_etree_fromstring
from ..cookies import LenientSimpleCookie
@@ -804,6 +805,16 @@ class GenericIE(InfoExtractor):
},
'skip': 'All The Daily Show URLs now redirect to http://www.cc.com/shows/',
},
# EasyBroadcast embed
{
'url': 'https://al24news.dz/en/live',
'info_dict': {
'id': '66_al24_u4yga6h',
'title': 'Al24',
'ext': 'mp4',
'live_status': 'is_live',
},
},
# jwplayer YouTube
{
'url': 'http://media.nationalarchives.gov.uk/index.php/webinar-using-discovery-national-archives-online-catalogue/',
@@ -2612,6 +2623,13 @@ class GenericIE(InfoExtractor):
if embeds:
return embeds
# EasyBroadcast embed
mobj = re.search(
EasyBroadcastLiveIE._VALID_URL,
webpage)
if mobj is not None:
return [self.url_result(mobj.group(0), ie=EasyBroadcastLiveIE)]
jwplayer_data = self._find_jwplayer_data(
webpage, video_id, transform_source=js_to_json)
if jwplayer_data: