Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Encyclopedia Metallum tags ? - How to find automatic tags by country for artists (Read 896 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Encyclopedia Metallum tags ? - How to find automatic tags by country for artists

Is there a way to find tags by country, for artists

Like for example, beattles are from the UK
you click on something and foobar finds out they are from the UK and you can tag the file

On the website Encyclopedia metallum all the band countries are shown

manually it can be very long to tag all files

can discog addon for foobar do it?
is there a encyclopedia metallum addon for foobar?
Or anything that could find the country of the artists


thank you


Re: Encyclopedia Metallum tags ? - How to find automatic tags by country for artists

Reply #1
Not fb2k, but for Mp3tag - and not even a ready to use solution, but:
For someone who can do a little bit of scripting, it should be possible to fill in a few lines in the Metal Archives source scripts at https://github.com/antonio-gil/Mp3Tag_WS_MetalArchives and get country.
Check this: https://www.metal-archives.com/search/ajax-advanced/searching/albums/?bandName=Black+Sabbath
It gives country.

If you have a look at one of the scripts, say https://github.com/antonio-gil/Mp3Tag_WS_MetalArchives/blob/master/Me%26tal%20Archives%23Search%20by%20Band%20%2B%20Album.src
there are lines
Code: [Select]
findline "<a href=\\\""
do
# Artist
findinline "\\\">"
sayuntil "<"
say "|"
meaning that it looks for a line with <a href=\" (the slash is also an escape character) and picks "Artist" as the string between \> and < - just after nationality. So a hunch would be - I have not done anything to test it! - that you could insert the "# Nationality" part and get it to work:

Code: [Select]
findline "<a href=\\\""
do
# Nationality
findinline "\\\">"
movechar -6
sayNchars 2
say "|"

# Artist
findinline "\\\">"
sayuntil "<"
say "|"

I called it "Nationality" as a "country" tag would often refer to the country of the release (a UK version, a US version, a JP version).
(Discogs has no format for nationality AFAIK.)