Error during "Delete uploads" when a song does not have a duration
apastel opened this issue · 1 comments
apastel commented
It's been observed that using the Delete Uploads function can cause this KeyError to occur. This is stemming from the ytmusicapi library's get_library_upload_songs()
function, likely due to A/B testing that Google is currently experimenting with on some user's accounts. I may have to open an issue in that project in order to get it resolved. In the meantime, I may be able to implement a workaround using a retry-loop if the function works on subsequent retries.
Delete Uploads clicked.
Showing confirmation dialog
Executing process: C:\Program Files (x86)\YTMusic_Deleter\_internal/ytmusic-deleter -l C:\Users\XXXX\AppData\Roaming\YTMusic_Deleter -c C:\Users\XXXX\AppData\Roaming\YTMusic_Deleter -p delete-uploads
State changed: Starting
State changed: Running
[2024-05-05 13:26:27] Attempting authentication with: C:\Users\XXXX\AppData\Roaming\YTMusic_Deleter\oauth.json
[2024-05-05 13:26:27] Authenticated with: C:\Users\XXXX\AppData\Roaming\YTMusic_Deleter\oauth.json"
[2024-05-05 13:26:28] Logged in as 'XXXXXXX'
[2024-05-05 13:26:28] Retrieving all uploaded songs...
Traceback (most recent call last):
File "cli.py", line 433, 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 87, in delete_uploads
File "ytmusic_deleter\uploads.py", line 30, in maybe_delete_uploaded_albums
File "ytmusicapi\mixins\uploads.py", line 65, in get_library_upload_songs
File "ytmusicapi\continuations.py", line 19, in get_continuations
File "ytmusicapi\continuations.py", line 69, in get_continuation_contents
File "ytmusicapi\parsers\uploads.py", line 33, in parse_uploaded_items
File "ytmusicapi\parsers\_utils.py", line 46, in get_fixed_column_item
KeyError: 'fixedColumns'
[16872] Failed to execute script 'cli' due to unhandled exception!
State changed: Not running
Process finished.
apastel commented
Fixed in 2.3.2