Skip to content

Broken entrypoint #128

Description

@Thatsean

AMD Entrypoint not working

/app # poetry run python main.py
Traceback (most recent call last):
File "/app/main.py", line 21, in
cmd = InteractiveShell(loop)
File "/app/src/cmd.py", line 42, in init
loop.run_until_complete(run_sync(it(WebAPI).init))
~~^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/creart/init.py", line 72, in create
result = creator.create(target_type)
File "/app/src/api.py", line 248, in create
return create_type(it(Config).download.proxy, it(Config).download.parallelNum)
File "/app/src/api.py", line 53, in init
self._set_token()
~~~~~~~~~~~~~~~^^
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/tenacity/init.py", line 331, in wrapped_f
return copy(f, *args, **kw)
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/tenacity/init.py", line 470, in call
do = self.iter(retry_state=retry_state)
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/tenacity/init.py", line 371, in iter
result = action(retry_state)
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/tenacity/init.py", line 393, in
self._add_action_func(lambda rs: rs.outcome.result())
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 443, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
raise self._exception
File "/root/.cache/pypoetry/virtualenvs/applemusicdecrypt-9TtSrW0h-py3.14/lib/python3.14/site-packages/tenacity/init.py", line 473, in call
result = fn(args, **kwargs)
File "/app/src/api.py", line 69, in _set_token
self.token = regex.search(r'eyJh([^"]
)', js_resp.text)[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptabler

Troubleshooting

I have tried troubleshooting this issue and have concluded that how apple issues tokens to its web player has changed. Searching through the network traffic still allows me to find a token and bypass this error where then I run into #127

Build and Config

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