mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
tv4play: change so its the same url we see on desktop
This commit is contained in:
parent
d193679855
commit
9536e23619
@ -65,7 +65,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
yield ServiceError("Cant find video id for the video")
|
||||
return
|
||||
|
||||
url = "https://playback-api.b17g.net/media/{}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine".format(vid)
|
||||
url = "https://playback-api.b17g.net/media/{}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine&browser=GoogleChrome".format(vid)
|
||||
res = self.http.request("get", url, cookies=self.cookies)
|
||||
if res.status_code > 200:
|
||||
yield ServiceError("Can't play this because the video is geoblocked or not available.")
|
||||
|
Loading…
Reference in New Issue
Block a user