[WS] iTunes source script with multiple search criteria

(...)

The IDs don't match - that's why I couldn't find this album. If you got the ID from your personal collection, be warned that source data IDs get changed over time, so an update might be useful.

As for the issue with TOTALCOLLECTIONTRACKS, the error is in the source data:

I could ignore this and have the script count the number of track entries, but on multi-disc releases a "$sum()" command of some kind would be necessary to keep adding the total tracks count of each disc, and none is available.

My script is working perfectly..... parsing incorrect data form the source :\
And since there's no reference to validate if the data provided is correct, there's not much I can do.

In this case, Apple Music posted incorrect data for this album (from experience this is not a rare event).
You'll have to manually correct your tag, or use iTunes mode (in this case, TOTALCOLLECTIONTRACKS is correct there).

Hope this helps.

PS: If you don't mind, I'll be moving this exchange to the main topic, as your question could be useful to others.