From 26ee481f67ea4f76e38196a0ac90907800dd2abd Mon Sep 17 00:00:00 2001 From: CasperMcFadden95 <145611964+CasperMcFadden95@users.noreply.github.com> Date: Wed, 18 Jun 2025 18:06:15 +0000 Subject: [PATCH] Update dzsecurity.py --- yt_dlp/extractor/dzsecurity.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/dzsecurity.py b/yt_dlp/extractor/dzsecurity.py index be6059485..c98fcb80c 100644 --- a/yt_dlp/extractor/dzsecurity.py +++ b/yt_dlp/extractor/dzsecurity.py @@ -5,7 +5,7 @@ class DzsecurityLiveIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?(echoroukonline|ennaharonline)\.com/live(?:-news)?' + _VALID_URL = r'https?://(?:www\.)?(echoroukonline\.com/live(?:-news)?|ennaharonline\.com/live(?:-news)?|elhayat\.dz/%D8%A7%D9%84%D8%A8%D8%AB-%D8%A7%D9%84%D8%AD%D9%8A)' _TESTS = [{ 'url': 'https://www.echoroukonline.com/live', @@ -23,6 +23,14 @@ class DzsecurityLiveIE(InfoExtractor): 'ext': 'mp4', 'live_status': 'is_live', }, + }, { + 'url': 'https://elhayat.dz/%D8%A7%D9%84%D8%A8%D8%AB-%D8%A7%D9%84%D8%AD%D9%8A', + 'info_dict': { + 'id': 'elhayattv', + 'title': r're:البث الحي - الحياة \d{4}-\d{2}-\d{2} \d{2}:\d{2}', + 'ext': 'mp4', + 'live_status': 'is_live', + }, }] def _real_extract(self, url):