Skip to content

Commit

Permalink
[FR - CNEWS] Fix item where live is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopa00 committed May 10, 2024
1 parent d27dbf4 commit 727355f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions resources/lib/channels/fr/cnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 727355f

Please sign in to comment.