apastel/ytmusic-deleter

`--add-to-library` or `-a` fails to find matching albums even without missing metadata

apastel opened this issue · 0 comments

When using the -a feature that adds an album to your library when deleting uploads, the part of the code that checks for a match is now unable to find any matches:

2024-03-15 15:31:49] Processing album: The Offspring - Americana
[2024-03-15 15:31:49] Searching for album in online catalog...
[2024-03-15 15:31:49] No match for uploaded album found in online catalog. Will not delete.

This is happening because of changes in Google's API. A data object that used to contain a string ('Americana') now contains a JSON object that looks like { name: 'Americana', id: <some_id> } so the parser fails to find a match.