From d90a0ba308faf2f1e3d64479c4e222f29d3bfc0c Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 22 Dec 2021 12:00:43 +0100 Subject: [PATCH] Fix Mediaset Play --- channels/mediasetplay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/mediasetplay.py b/channels/mediasetplay.py index 9f6aecbe..af8721c0 100644 --- a/channels/mediasetplay.py +++ b/channels/mediasetplay.py @@ -250,7 +250,7 @@ def play(item): Format = 'dash+xml' if mpd else 'x-mpegURL' for it in item.urls: if Format in it['format']: - item.url = requests.head(it['publicUrls'][0]).headers['Location'] + item.url = requests.head(it['publicUrls'][0]).headers['Location'] + '|User-Agent=' + support.httptools.get_user_agent() pid = it['releasePids'][0] if mpd and 'widevine' in it['assetTypes']: break @@ -278,7 +278,7 @@ def play(item): if url: sec_data = support.match(url + '?' + urlencode(res)).data - item.url = support.match(sec_data, patron=r'