mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-01 19:08:32 +00:00
Use _EMBED_REGEX
This commit is contained in:
parent
ce19f1b486
commit
9f716e23fd
@ -7,33 +7,57 @@
|
|||||||
|
|
||||||
class EasyBroadcastLiveIE(InfoExtractor):
|
class EasyBroadcastLiveIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:\w+\.)?player\.easybroadcast\.io/events/(?P<id>[0-9a-zA-Z_]+)'
|
_VALID_URL = r'https?://(?:\w+\.)?player\.easybroadcast\.io/events/(?P<id>[0-9a-zA-Z_]+)'
|
||||||
|
_EMBED_REGEX = [rf'<iframe [^>]*\bsrc=[\'"](?P<url>{_VALID_URL})']
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
{
|
{
|
||||||
'url': 'https://al24.player.easybroadcast.io/events/66_al24_u4yga6h',
|
'url': 'https://al24.player.easybroadcast.io/events/66_al24_u4yga6h',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '66_al24_u4yga6h',
|
'id': '66_al24_u4yga6h',
|
||||||
'title': 'Al24',
|
'title': r're:Al24 \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
|
'params': {
|
||||||
|
'nocheckcertificate': True,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'url': 'https://snrt.player.easybroadcast.io/events/73_aloula_w1dqfwm',
|
'url': 'https://snrt.player.easybroadcast.io/events/73_aloula_w1dqfwm',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '73_aloula_w1dqfwm',
|
'id': '73_aloula_w1dqfwm',
|
||||||
'title': 'Aloula',
|
'title': r're:Aloula \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
|
'params': {
|
||||||
|
'nocheckcertificate': True,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
]
|
||||||
|
_WEBPAGE_TESTS = [
|
||||||
{
|
{
|
||||||
'url': 'https://captaprod.player.easybroadcast.io/events/54_tvr_vtucuxt',
|
'url': 'https://al24news.dz/en/live',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '54_tvr_vtucuxt',
|
'id': '66_al24_u4yga6h',
|
||||||
'title': 'TVR',
|
'title': r're:Al24 \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
|
'params': {
|
||||||
|
'nocheckcertificate': True,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'https://snrtlive.ma/fr/al-aoula',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '73_aloula_w1dqfwm',
|
||||||
|
'title': r're:Aloula \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'live_status': 'is_live',
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'nocheckcertificate': True,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user