Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
FlyingCheese
Jan 17, 2007
OH THANK GOD!

I never thought I'd be happy to see yet another lubed up man-ass.
Humble Request
Problem: I have an extremely large music library, and manage a couple music libraries for local community (read: poor as poo poo) radio stations. These files are tagged pretty well but there is one feature that I and others have been craving. Bandcamp artist/album pages have a very handy piece of info that isn't normally in other databases (discogs, musicbrainz, etc.) and that is the bands home town. Bandcamp also does not put this tag in their files when you buy music from them.
Description and requirements: I'd love a tool that can read Artist data from music files, scrape Bandcamps site for this piece of data, and put it in either an ID3 or Vorbis tag (depending on file format).
The text needed is contained in
code:
<span class="location secondaryText">City, Country</span>
Nice to have features: If this could be a foobar2000 plugin that would be incredible, but whatever is easiest for you.

FlyingCheese fucked around with this message at 12:11 on Nov 4, 2018

Adbot
ADBOT LOVES YOU

FlyingCheese
Jan 17, 2007
OH THANK GOD!

I never thought I'd be happy to see yet another lubed up man-ass.

Chunjee posted:

Are the bandcamp urls documented anywhere in the file metadata or elsewhere? I have programmatically updated ID3 tags before so this would be cake if I can get a dependable source for the data.

Trouble is:
- The Bandcamp API doesn't say what it provides and access is also not freely available unless they decide they like you.
- learning how to search each file with bandcamp-scraper would take me several hours and you would end up with a NodeJS app instead of an easy to use .exe


But if you already know the bandcamp urls for each album this should be easy because I can just ping that page and get the data.

Some files have the url in the comment tag "Visit _____" but others do not. I was hoping the app would just do an Artist search, or better yet, look for the url in the comment tag first and then fall back on searching.


nielsm posted:

Writing it as a foobar2000 plugin would simplify the entire reading and writing music file metadata, letting you focus on just the look-up part. It sounds like the best approach to take.

That does sound like good news!

FlyingCheese
Jan 17, 2007
OH THANK GOD!

I never thought I'd be happy to see yet another lubed up man-ass.

Feral Integral posted:

Doesn't look too hard to scrape, do you mind posting some example artists that have the comment url thing in the tags? Also if any of them have songs that are free to download that would be cool so I could test with them

Also there are sometimes discrepancies in the bands 'name' vs their url on bandcamp: https://kunayalaproductions.bandcamp.com/ . This company's url is kunayalaproductions, but seems to refer to itself on all it's pages/logos as Kunayala Records. So I guess some of the bands locations might not be retrievable this way, or a wrong location could conceivably be set

One more thing: according to http://id3.org/id3v2.3.0#Declared_ID3v2_frames which is like all the standard tags you can use according to the id3 specifications, I should use the "User defined text information" tag to store this info, if thats good with u

Yeah sure, here's a few free examples.
https://barochandel.bandcamp.com/album/baro-bokhalo
https://thisisnotwarszawa.bandcamp.com/album/i-p-s
https://greynbownes.bandcamp.com/releases

Would using the search function fix that issue?

And as far as tags, it doesn't matter much what tag it uses, as I can remap them in Foobar2000 if necessary. I would imagine User Defined would be a good one to use. I will say that most of this music is stored as FLAC so it needs to work with vorbis tags too.

Thanks for looking into this.

FlyingCheese
Jan 17, 2007
OH THANK GOD!

I never thought I'd be happy to see yet another lubed up man-ass.

mobby_6kl posted:

No, I think what this means is that we solved all of eveyone's little problem, so there's nothing left to do now.

My request is still open, if you're looking for a project.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply