From 85ef17ddcba44ed18c265d2e4cb463bfb62a4302 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Fri, 17 Feb 2023 18:50:03 +0100 Subject: [PATCH] Fix tv4.se Was forgotten or not affected in 77a6f03. --- lib/svtplay_dl/service/tv4play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index 4249a60..932d3b3 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -199,7 +199,7 @@ class Tv4(Service, OpenGraphThumbMixin): if janson["query"]["type"] == "Article": vidasset = janson["props"]["pageProps"]["apolloState"][f"Article:{janson['query']['id']}"]["featured"]["__ref"] self.output["id"] = janson["props"]["pageProps"]["apolloState"][vidasset]["id"] - url = f"https://playback-api.b17g.net/media/{self.output['id']}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine" + url = f"https://playback2.a2d.tv/play/{self.output['id']}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine&capabilities=live-drm-adstitch-2%2Cexpired_assets" 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.")