notstarboard / tidal-utils

Utilities to improve UX on TIDAL
3 stars 0 forks source link

Support missing items without alphanumeric names #6

Closed notstarboard closed 1 month ago

notstarboard commented 1 month ago

If one of the items missing from your library contains no alphanumeric characters (e.g. "," by Invent Animate) and fix_unavailable.py is run with the -r flag, it will throw an error. To avoid this, the code should confirm alphanumeric characters exist before stripping out any non-alphanumeric characters.

In the meantime, this can be worked around by manually fixing any items that cause in this error and then re-running fix_unavailable.py.

notstarboard commented 1 month ago

It's likely that this issue was caused by bug #7, as I believe the error message was the same, and it doesn't make sense that a song titled "," would cause an issue. I had misremembered that I was stripping out non-alphanumeric characters; I actually just strip out parentheticals. I don't know why the query ", Invent Animate" would return no results, but it's possible that was not the query if there was a metadata issue with the old song (i.e. gray_track.full_name != ",").

Given the high probability that this is not a real bug, and the rarity of hitting it in the first place, I am closing this issue. I'll revisit this if I'm able to reproduce it in the future.