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
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
origin https://github.com/WorldObservationLog/AppleMusicDecrypt.git (fetch)
origin https://github.com/WorldObservationLog/AppleMusicDecrypt.git (push)
381a8b9 (HEAD -> v2, origin/v2, origin/HEAD) regex-fix
90c53a0 feat: Introduce Pydantic models for Apple Music entities and enhance ripping tasks with context and filename tracking.
f0f4861 feat: Implement core ripping logic with enhanced task management and status update callbacks.
710276f fix: mismatch between download.py and rip.py signatures
c4f56cf fix: improve the timeout mechanism