mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
Update faulio.py
This commit is contained in:
parent
8ac988ad0f
commit
e8c9fbc1f0
@ -1,7 +1,7 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from yt_dlp.extractor.common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from yt_dlp.utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
traverse_obj,
|
traverse_obj,
|
||||||
)
|
)
|
||||||
@ -13,48 +13,43 @@ class FaulioLiveIE(InfoExtractor):
|
|||||||
r'(?:en/)?live/(?P<faulio_url>[a-zA-Z0-9\-]+)'
|
r'(?:en/)?live/(?P<faulio_url>[a-zA-Z0-9\-]+)'
|
||||||
)
|
)
|
||||||
|
|
||||||
_TESTS = [
|
_TESTS = [{
|
||||||
{
|
|
||||||
'url': 'https://aloula.sba.sa/live/saudiatv',
|
'url': 'https://aloula.sba.sa/live/saudiatv',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '2',
|
'id': '2',
|
||||||
'title': r're:قناة السعودية – البث المباشر \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
'title': str,
|
||||||
'description': 'البث المباشر لقناة السعودية، تابع أخبار المملكة وأهم الأحداث المحلية والعالمية، بالإضافة لبرامج اجتماعية وترفيهية منوعة',
|
'description': str,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
'url': 'https://aloula.sba.sa/live/sbc-channel',
|
'url': 'https://aloula.sba.sa/live/sbc-channel',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1',
|
'id': '1',
|
||||||
'title': r're:قناة SBC – البث المباشر \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
'title': str,
|
||||||
'description': 'البث المباشر لقناة SBC ، برامج منوعة وأعمال درامية وترفيهية سعودية وعربية على مدار الساعة.',
|
'description': str,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
'url': 'https://maraya.sba.net.ae/live/1',
|
'url': 'https://maraya.sba.net.ae/live/1',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1',
|
'id': '1',
|
||||||
'title': r're:تلفزيون الشارقة \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
'title': str,
|
||||||
'description': 'تلفزيون الشارقة',
|
'description': str,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
'url': 'https://maraya.sba.net.ae/live/14',
|
'url': 'https://maraya.sba.net.ae/live/14',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '14',
|
'id': '14',
|
||||||
'title': r're:قناة الشارقة الرياضية 2 \d{4}-\d{2}-\d{2} \d{2}:\d{2}',
|
'title': str,
|
||||||
'description': 'قناة الشارقة الرياضية 2',
|
'description': str,
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'live_status': 'is_live',
|
'live_status': 'is_live',
|
||||||
},
|
},
|
||||||
},
|
}]
|
||||||
]
|
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = self._match_valid_url(url)
|
mobj = self._match_valid_url(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user