WorldObservationLog/AppleMusicDecrypt

Issue with special characters? OSError: [Errno 22] Invalid argument

dirkNlerxst opened this issue · 0 comments

I am getting this error on a song, and I think the issue is that it has quotations:

"OSError: [Errno 22] Invalid argument: 'C:\\Users\\Emulation-PC\\Downloads\\AppleMusicDecrypt-Windows(1)\\downloads\\Vulfpeck\\The Joy of Music, The Job of Real Estate\\1-08 Something (feat. Bernard "Pretty" Purdie & Theo Katzman).m4a'"

At least from a quick search of OSError: Errno22...I am not well versed in python.

More information if this helps:

2024-05-14 09:38:23.412 | ERROR    | asyncio.events:_run:84 - An error has been caught in function '_run', process 'MainProcess' (11156), thread 'MainThread' (19760):
Traceback (most recent call last):

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\main.py", line 9, in <module>

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\asyncio\base_events.py", line 641, in run_until_complete

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\asyncio\windows_events.py", line 321, in run_forever

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\asyncio\base_events.py", line 608, in run_forever

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\asyncio\base_events.py", line 1936, in _run_once

> File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\asyncio\events.py", line 84, in _run

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\src\rip.py", line 77, in rip_song

  File "C:\Users\EMULAT~1\DOWNLO~1\APPLEM~2\src\save.py", line 15, in save

Thanks in advance.

Edit: as a work around for anyone experiencing this, you can remove {title} from the config.toml and rename the file yourself.