Fixed tracks to download appletv seasons
This commit is contained in:
parent
6f35e17fdd
commit
4f439f5ada
@ -150,7 +150,7 @@ class AppleTVPlus(BaseService):
|
||||
'utsk': '6e3013c6d6fae3c2::::::9318c17fb39d6b9c',
|
||||
'caller': 'web',
|
||||
'sf': self.storefront,
|
||||
'v': '82',
|
||||
'v': '46',
|
||||
'pfm': 'appletv',
|
||||
'mfr': 'Apple',
|
||||
'locale': 'en-US',
|
||||
@ -159,7 +159,7 @@ class AppleTVPlus(BaseService):
|
||||
'count': '100',
|
||||
'skip': '0',
|
||||
}
|
||||
r = self.session.get(url=self.config["endpoints"]["title"].format(type={0: "shows", 1: "movies", 2: "sporting-events"}[self.type], id=self.title),
|
||||
r = self.session.get(url=self.config["endpoints"]["manifest"].format(id=title.service_data["id"]),
|
||||
params=self.params
|
||||
)
|
||||
try:
|
||||
@ -167,12 +167,14 @@ class AppleTVPlus(BaseService):
|
||||
#print(stream_data)
|
||||
except json.JSONDecodeError:
|
||||
raise ValueError(f"Failed to load stream data: {r.text}")
|
||||
stream_data = stream_data["data"]["playables"]
|
||||
stream_data = stream_data["data"]["content"]["playables"][0]
|
||||
"""
|
||||
if self.condensed == True:
|
||||
tvs_sbd = list(stream_data.keys())[1]
|
||||
else:
|
||||
tvs_sbd = list(stream_data.keys())[0]
|
||||
stream_data = stream_data[tvs_sbd]
|
||||
"""
|
||||
if not stream_data["isEntitledToPlay"]:
|
||||
raise self.log.exit(" - User is not entitled to play this title")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user