Skip to content

Commit

Permalink
[MA - SNRT] Fix live
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopa00 committed Dec 14, 2024
1 parent 4317df7 commit bc03b42
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resources/lib/channels/ma/snrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

from resources.lib import resolver_proxy, web_utils

URL_LIVES = 'https://cdnamd-hls-globecast.akamaized.net/live/ramdisk/%s/hls_snrt/%s.m3u8'
URL_ROOT = 'https://snrtlive.ma'

URL_LIVES = 'https://cdn-globecast.akamaized.net/live/eds/%s/hls_snrt/%s.m3u8'


@Resolver.register
Expand All @@ -35,4 +37,9 @@ def get_live_url(plugin, item_id, **kwargs):
id = "arriadia"
video_url = URL_LIVES % (id, id)

return resolver_proxy.get_stream_with_quality(plugin, video_url, manifest_type="hls")
headers = {
"User-Agent": web_utils.get_random_ua(),
"referer": URL_ROOT
}

return resolver_proxy.get_stream_with_quality(plugin, video_url, headers=headers)

0 comments on commit bc03b42

Please sign in to comment.