apastel/ytmusic-deleter

script failing

dalton1958 opened this issue · 2 comments

The app advises that I am signed in so I assume that the process for adding the required headers worked as expected, I basically copied everything from top to bottom and pasted it intothe app window.

When I try to "delete uploads" it produces the following script output and fails to remove the uploaded tracks.

Signed in.
GUI version: 2.9.1
CLI path: C:\Program Files (x86)\YTMusic_Deleter_internal\ytmusic-deleter.EXE
CLI version: ytmusic-deleter, version 2.9.1
ytmusicapi version: 1.8.2
Delete Uploads clicked.
Showing confirmation dialog
Executing process: C:\Program Files (x86)\YTMusic_Deleter_internal/ytmusic-deleter -l C:\Users\steve\AppData\Roaming\YTMusic_Deleter -c C:\Users\steve\AppData\Roaming\YTMusic_Deleter -p -n -v delete-uploads
State changed: Starting
State changed: Running
[2024-12-12 13:34:48] Attempting authentication with: C:\Users\steve\AppData\Roaming\YTMusic_Deleter\browser.json
[2024-12-12 13:34:48] Authenticated with: C:\Users\steve\AppData\Roaming\YTMusic_Deleter\browser.json"
[2024-12-12 13:34:48] Retrieving all uploaded songs...
[2024-12-12 13:34:48] Starting new HTTPS connection (1): music.youtube.com:443
[2024-12-12 13:34:48] https://music.youtube.com:443 "POST /youtubei/v1/browse?alt=json&key=AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX30 HTTP/1.1" 400 1555
Traceback (most recent call last):
File "cli.py", line 580, in
File "click\core.py", line 1157, in call
File "click\core.py", line 1078, in main
File "click\core.py", line 1688, in invoke
File "click\core.py", line 1434, in invoke
File "click\core.py", line 783, in invoke
File "click\decorators.py", line 33, in new_func
File "cli.py", line 101, in delete_uploads
File "ytmusic_deleter\uploads.py", line 30, in maybe_delete_uploaded_albums
File "ytmusicapi\mixins\uploads.py", line 55, in get_library_upload_songs
File "ytmusicapi\ytmusic.py", line 237, in send_request
File "json_init
.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[47140] Failed to execute script 'cli' due to unhandled exception!
State changed: Not running
Process finished.

Sorry, realised I was copying all the header info not just the request headers section, now appears to be working.

Sorry, realised I was copying all the header info not just the request headers section, now appears to be working.

Ah, glad you figured it out, yeah the sign-in process is a little tricky. Up until about a month ago, you could sign in using button clicks using YouTube API integration, but they got rid of that (or changed it, rather). But I'm hopeful that it will come back again soon in some form or another.