Updated websource. Sorry about the jankiness from my older Bandcamp scripts. Admittedly, they were done in a hurry. No one mentioned anything to me here, so I thought they worked well for others. Again, I don't use Bandcamp all that much, so I tested this recently and found the one I posted from last year was broken. This one should be much better (using sayregexp now). See OP for new src file.
Artist pages often times don't have the track info you're looking for. Also, one would need to go to another page, which is beyond what the index parser can do (index -> URL; not index -> URL -> URL2).
I updated the initial post to include a source that permits searching for single tracks.
I downloaded the source. It works well to find the track on Bandcamp but all the tags fields are then empty.
I'm pretty sure it is caused by the structure of the website that must have changed. Do you have any update or could you help me with some tips on how to adapt the source to make it work ?
Song titles with quotation are being attached (escaped?) with backslashes (so "). It's not a huge deal, but it requires extra steps in tagging by having to use $replace otherwise it'll output some odd file type/name shenanigans.
When attempting to tag a single file, looking for albums will only return the first track for some reason. Is there a way to fix this? Also, is there a way to produce a full date format e.g. 2017-07-28?
When you buy something on Bandcamp, usually you already know the URL. Sometimes the search of the script doesn't find the release even though it is letter for letter like on Bandcamp. Hence it would pretty great to have an option to enter the URL manually instead of just searching for it.
Bandcamp changed their site, so here are updated websources for album searching (1st websource) or simply paste the URL into the search window (2nd websource). It doesn't grab as many info fields as before. Just keeping it simple with the basics.
It is saved as BANDCAMP_URL in the tags. If you want to save it in the more common tag field WWW, then open up the src file in notepad, or your favorite text editor, and change the line outputto "BANDCAMP_URL" to outputto "WWW"
Anyways, bandcamp changed their pages again, so here's updated src files:
Thank you very much for your answer.
Unfortunately that was not exactly what I meant.
When I look at the source code of the album page, there is a part: " <script type="application/ld+json">"
there URLs of the individual tracks are stored.
As an example:
"{"numTracks":19, "track":{"itemListElement":[{"position":1, "item":{"@id": "https://subterraneanrecords.bandcamp.com/track/aive-veitstanz", "name": "Aive - Veitstanz","@type": "MusicRecording", "duration": "P00H04M48S"},"@type": "ListItem"}"
Just add this section before or after any of the sections (e.g. # Bandcamp_URL and its code) listed below the big ALBUM heading. Be aware that some releases do not have track URL's for every track, so those pages will mess up the output of this section.