ITV -> 1.0.1

- Update User Agent
This commit is contained in:
stabbedbybrick 2025-02-18 15:44:33 +01:00
parent b4d7f7a03a
commit 5ebdaa2aed
2 changed files with 2 additions and 7 deletions

View File

@ -24,7 +24,7 @@ class ITV(Service):
Service code for ITVx streaming service (https://www.itv.com/).
\b
Version: 1.0.0
Version: 1.0.1
Author: stabbedbybrick
Authorization: Cookies (Optional for free content | Required for premium content)
Robustness:
@ -280,10 +280,6 @@ class ITV(Service):
if r.status_code != 200:
raise ConnectionError(r.text)
r = self.session.post(playlist, headers=headers, json=payload)
if r.status_code != 200:
raise ConnectionError(r.text)
data = r.json()
video = data["Playlist"]["Video"]
subtitles = video.get("Subtitles")

View File

@ -1,6 +1,5 @@
headers:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
accept-language: en-US,en;q=0.8
User-Agent: okhttp/4.9.3
endpoints:
login: https://auth.prd.user.itv.com/v2/auth