Skip to content

fix: handle Apple TV+ API changes and improve error handling#13

Open
niccoloc0 wants to merge 1 commit intodropcreations:mainfrom
niccoloc0:main
Open

fix: handle Apple TV+ API changes and improve error handling#13
niccoloc0 wants to merge 1 commit intodropcreations:mainfrom
niccoloc0:main

Conversation

@niccoloc0
Copy link

  • Fix KeyError: 0 in __get_access_token() — Apple changed the serialized-server-data JSON from a list to a dict with a nested data list. Now handles both old format (list) and new format (dict).

  • Fix __get_json() to use self.session.get() instead of bare requests.get(), ensuring the Bearer auth token is sent with API requests.

- Fix KeyError: 0 in __get_access_token() — Apple changed the
  serialized-server-data JSON from a list to a dict with a nested
  data list. Now handles both old format (list) and new format (dict).

- Fix __get_json() to use self.session.get() instead of bare
  requests.get(), ensuring the Bearer auth token is sent with
  API requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant