Skip to content

Commit

Permalink
[FR - CNEWS] Fix place 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 926ca90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 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'

Check failure on line 169 in resources/lib/channels/fr/cnews.py

View workflow job for this annotation

GitHub Actions / Flake8

resources/lib/channels/fr/cnews.py#L169

Over-indented (E117)

return resolver_proxy.get_stream_dailymotion(plugin, live_id, False)

0 comments on commit 926ca90

Please sign in to comment.