Skip to content

Problem with Amazon API update from nile 1.1.2 #60

@Bob837217

Description

@Bob837217

HEAD detached at v1.1.2

Problem when importing game. Importer.py attempts to retrieve "downloadUrls" member from dictionary:
Line 27: download_url = game_manifest["downloadUrls"][0]

There is no "downloadUrls", only a "downloadUrl".

If I change the line to be:
download_url = game_manifest["downloadUrl"]
.. then things move forward as we have a download Url starting with "https://pg.distribution.games.a2z.com" and ending with a lot of text.

But if you launch that URL in your browser (or allow nile to proceed), the XML response is:
<Error> <Code>AccessDenied</Code> <Message>Access denied</Message> </Error>

So something is missing? I did authenticate in advance with nile and sync the library too.
If I let nile proceed with the above line fixed, I get:

b'<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message>Access denied</Message></Error>' Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/user/Projects/nile/nile/cli.py", line 354, in <module> sys.exit(main()) File "/home/user/Projects/nile/nile/cli.py", line 343, in main cli.handle_import() File "/home/user/Projects/nile/nile/cli.py", line 302, in handle_import importer.import_game() File "/home/user/Projects/nile/nile/utils/importer.py", line 83, in import_game if not self.verify_integrity(): File "/home/user/Projects/nile/nile/utils/importer.py", line 51, in verify_integrity patchmanifest = self.get_patchmanifest() File "/home/user/Projects/nile/nile/utils/importer.py", line 37, in get_patchmanifest r_manifest.parse(response.content) File "/home/user/Projects/nile/nile/models/manifest.py", line 72, in parse self.header_pb = header.FromString(content[4 : 4 + header_size]) google.protobuf.message.DecodeError: Error parsing message with type 'tv.twitch.fuel.sds.ManifestHeader'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions