Skip to content

Commit

Permalink
[FR - FRANCE3REGIONS] FIx live
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopa00 committed Nov 9, 2024
1 parent 452d446 commit 9f35aa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/lib/channels/fr/france3regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ def get_live_url(plugin, item_id, **kwargs):

resp = urlquick.get(choice, headers=GENERIC_HEADERS, max_age=-1)
root = resp.parse()
video_id = root.find('.//div[@class="magneto"]').get('data-id')
video_id = root.find('.//figure[@class="magneto"]').get('data-id')

return resolver_proxy.get_francetv_live_stream(plugin, broadcast_id=video_id)
9 changes: 4 additions & 5 deletions resources/lib/resolver_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,11 @@ def get_francetv_live_stream(plugin, broadcast_id):
}
video_url = urlquick.get(url_token, params=params, headers=GENERIC_HEADERS, max_age=-1).json()['url']
if 'hls' in video_datas['format']:
return video_url + '|User-Agent=' + web_utils.get_random_windows_ua()
if 'dash' in video_datas['format']:
return get_stream_with_quality(plugin, video_url, manifest_type='mpd', license_url=URL_LICENSE_FRANCETV)
manifest = 'hls'
else 'dash' in video_datas['format']:

Check failure on line 583 in resources/lib/resolver_proxy.py

View workflow job for this annotation

GitHub Actions / Flake8

resources/lib/resolver_proxy.py#L583

SyntaxError: invalid syntax (E999)
manifest = 'mpd'

# Return info the format is not known
return False
return get_stream_with_quality(plugin, video_url, manifest_type=manifest, license_url=URL_LICENSE_FRANCETV)


# Arte Part
Expand Down

0 comments on commit 9f35aa9

Please sign in to comment.