From 727355f80ea15959a536aac16f503eab2c6406bf Mon Sep 17 00:00:00 2001 From: joaopa00 Date: Thu, 9 May 2024 15:18:11 -1000 Subject: [PATCH] [FR - CNEWS] Fix item where live is defined --- resources/lib/channels/fr/cnews.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/lib/channels/fr/cnews.py b/resources/lib/channels/fr/cnews.py index 4fce7a46b..209774016 100644 --- a/resources/lib/channels/fr/cnews.py +++ b/resources/lib/channels/fr/cnews.py @@ -164,11 +164,8 @@ def get_video_url(plugin, item_id, video_url, download_mode=False, **kwargs): def get_live_url(plugin, item_id, **kwargs): root = urlquick.get(URL_LIVE_CNEWS, headers=GENERIC_HEADERS, max_age=-1).parse() try: - live_id = root.find(".//div[@id='player_live']").get('data-videoid') + live_id = root.find(".//div[@data-muted='true']").get('data-videoid') except Exception: - try: - live_id = root.find(".//div[@id='player_live']").get('data-video-id') - except Exception: - live_id = 'x3b68jn' + live_id = 'x3b68jn' return resolver_proxy.get_stream_dailymotion(plugin, live_id, False)