1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 05:34:15 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Capnode
2d93032b67
Merge 3af1fec2c6 into 515ab99c7a 2024-10-05 23:19:15 +02:00
Patrik Lermon
515ab99c7a tv4play: update Client-Version from 4.0.0 to 5.2.0 2024-10-05 23:18:58 +02:00

View File

@ -198,7 +198,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
res = self.http.request( res = self.http.request(
"post", "post",
"https://client-gateway.tv4.a2d.tv/graphql", "https://client-gateway.tv4.a2d.tv/graphql",
headers={"Client-Name": "tv4-web", "Client-Version": "4.0.0", "Content-Type": "application/json", "Authorization": f"Bearer {token}"}, headers={"Client-Name": "tv4-web", "Client-Version": "5.2.0", "Content-Type": "application/json", "Authorization": f"Bearer {token}"},
json=data, json=data,
) )
janson = res.json() janson = res.json()
@ -242,7 +242,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
res = self.http.request( res = self.http.request(
"post", "post",
"https://client-gateway.tv4.a2d.tv/graphql", "https://client-gateway.tv4.a2d.tv/graphql",
headers={"Client-Name": "tv4-web", "Client-Version": "4.0.0", "Content-Type": "application/json", "Authorization": f"Bearer {token}"}, headers={"Client-Name": "tv4-web", "Client-Version": "5.2.0", "Content-Type": "application/json", "Authorization": f"Bearer {token}"},
json=data, json=data,
) )
return res.json() return res.json()
@ -261,7 +261,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
res = self.http.request( res = self.http.request(
"post", "post",
"https://client-gateway.tv4.a2d.tv/graphql", "https://client-gateway.tv4.a2d.tv/graphql",
headers={"Client-Name": "tv4-web", "Client-Version": "4.0.0", "Content-Type": "application/json"}, headers={"Client-Name": "tv4-web", "Client-Version": "5.2.0", "Content-Type": "application/json"},
json=data, json=data,
) )
janson = res.json() janson = res.json()