#musicbrainz

/

      • SultS_
        :P
      • Nickii
        Looking for some help please. From someone who knows the Database schema.
      • reosarevok
        Ask and I'm sure someone will be able to help :)
      • hawke_
        Nickii: I’m sorry, this is the room for bullshitting about Steam, apparently. Not talking about Musicbrainz. ;-)
      • j/k of course.
      • Nickii
        I'm looking for the Db Table that links A track to it's album.
      • I am using the raw files.
      • kovacsur
        you mean a track to a medium?
      • ianmcorvidae
        depending on exactly what you're doing, you may need any/all of: track, tracklist, recording, medium, release
      • Nickii
        I will see if I can give an example...
      • ianmcorvidae
        each medium is linked to a release and to a tracklist; each track is linked to a recording and a tracklist
      • so it depends what you mean by 'track', by 'album', and by 'link' :)
      • reosarevok
        lol
      • reosarevok laughs at VxJasonxV's description of Bit Trip Beat
      • Nickii
        ACtually... Where can I find the field names in the Tracks table?
      • kovacsur
        reosarevok: your "part-of" relationship thing is done by the way, but I'm not sure if I should release it to the public like this. It adds a "part of <work>" comment to the list dynamically, but doesn't load the ones that already exist in the db
      • reosarevok
        kovacsur, can I get a pastebin version for now? :)
      • kepstin
        Nickii: make sure you take a look at http://wiki.musicbrainz.org/-/images/5/52/ngs.png
      • reosarevok
        (I agree that loading them would be pretty awesome though for a released one)
      • Mineo joined the channel
      • kepstin
        Nickii: you'll find that the track names are in the track_name table :)
      • kovacsur
      • reosarevok
        Awesome :D
      • 4 presents in a day! (2 userscripts, 2 steam games)
      • I shouldn't go to sleep tonight!
      • Nickii
        kepstin Thank you.
      • reosarevok
        :p
      • ianmcorvidae
        Nickii: you should probably get yourself a copy of the database to look around in
      • http://wiki.musicbrainz.org/Image:ngs.png has the relevant chunks of our schema, though
      • which will probably help you a lot :)
      • Nickii
        iancorvidae Thank you. I have downloaded a copy of the raw text files from the MusicDb ftp server which I am using.
      • ianmcorvidae
        that doesn't give you the schema or let you query it, etc. :)
      • SultS_
        I can gift Frozen Synapse to anyone who's interested in that sort of thing/game :)
      • VxJasonxV
        So I'm sitting here, reading this conversation with Nickii.
      • reosarevok has it
      • My brain realizes something is off, both the capitalization and the fact that I knew nikki already had and used a copy of the MBz DB.
      • Yet, I just can't figure out what the problem is.
      • reosarevok
        :p
      • VxJasonxV
        Then my brain catches up with itself and realizes that Nickii != nikki...
      • kovacsur
        heheh
      • kepstin
        confused me for a bit there, too
      • Nickii
        VxJasonxV This is my first time here. :-)
      • VxJasonxV
        So I gathered. Welcome!
      • Nickii
        The db schema lists "name" as a field but I don't see any Track names in the file i have.
      • ianmcorvidae
        name is a link to the track_name table
      • so it is a number; the track name is the 'page' column of the track_name row with the corresponding number in the 'id' column
      • Nickii
        iamcorvidae I know that now but does that mean the schema is out of date?
      • ianmcorvidae
        no, that's how it should be
      • Nickii
        Oh.
      • ianmcorvidae
        the track_name table is designed to make the same name, used more than once, be stored only once
      • it's also used by the 'name' column of the 'recording' table, as the image I linked shows
      • Nickii
        So is trackname.page the Track Title?
      • Sorry track_name.page
      • ianmcorvidae
        yes, that should be correct
      • oh, pardon, it's the column 'name'
      • the image I linked is out of date :)
      • Nickii
        Thank you, that is what I suspected.
      • ianmcorvidae
        so yeah, track.name points to track_name.id; track_name.name has the actual name
      • Nickii
        Is the current schema with the field names of each table listed somewhere?
      • ianmcorvidae
        that should be actually correct
      • it's probably in a sql file in the codebase
      • lemme look
      • Nickii
        Thank you again.
      • DarkerAudit joined the channel
      • So, assuming there is a new schema in place, I am looking for the link between a Track and the album it comes from.
      • ianmcorvidae
        yeah, it's in admin/sql/CreateTables.sql
      • the image I linked is very close to accurate; that page vs. name difference is the first incorrect thing I've seen
      • reosarevok
        ianmcorvidae: can you add a note indicating that change to the page where that is linked from?
      • ianmcorvidae
        reosarevok: in a few, sure
      • reosarevok
        :)
      • ianmcorvidae
        Nickii: what piece of information are you starting with? A title, a specific recording, what?
      • and what piece of information do you want to get from this
      • otherwise it's hard to answer your question :)
      • VxJasonxV
        stupid idlerpg
      • Nickii
        iancorvidae I first want to note that I am dealing with the raw text files, not any SQL tables.
      • ianmcorvidae
        the text files are dumped from the SQL tables; the schema's the same :)
      • reosarevok
        VxJasonxV, wtf?
      • reosarevok just looked at what idlerpg is and now he wtfs more
      • Nickii
        In the files that I have, I have files like track,track_name,artist,release etc.
      • SultS_
        haha, I've “played” one
      • Nickii
        and I am importing these into MS Access.
      • ianmcorvidae
        yeah, those are the names of the SQL tables those files were dumped from
      • Nickii
        So, I want to make an MS Access Database from these files.
      • reosarevok
        Although well, I guess it is like Farmville, without the clicking
      • Nickii
        These files do not have the field names listed so I am goint from research.
      • going*
      • ianmcorvidae
        yes, the column names are listed in the file admin/sql/CreateTables.sql, in the source code for the server
      • Nickii
        I will look there first, before I go futher.
      • ianmcorvidae
        (er, some tables will also be listed in admin/sql/vertical/rawdata/CreateTables.sql)
      • direct link to the file I mentioned: http://git.musicbrainz.org/gitweb/?p=musicbrain...
      • Nickii
        Where are they on the ftp server?
      • I can't see /pub/musicbrainz/admin
      • ianmcorvidae
        they aren't on the ftp server, this is from the codebase
      • you'll need to get them from git
      • Nickii
        Oh.
      • These files should be available on the FTP server. :-)
      • VxJasonxV
        github will turn a git repo into a downloadable bundle for you
      • ianmcorvidae
        generally people don't want them separate from the rest of the codebase, which it's a lot more reasonable to get from git :P
      • VxJasonxV
        and iirc mbz is on github
      • ianmcorvidae
        it is, under metabrainz/musicbrainz-server (as I recall)
      • CatCat
        VxJasonxV: yea i thgohut about Nickii != nikki too
      • heh
      • VxJasonxV
        ianmcorvidae, indeed
      • CatCat
        and aw man, all this talk about steam now i wabnt to join and be like a part of stuff
      • VxJasonxV
        and I made that same mistake. AGAIN
      • CatCat
        but alas i sucka t games so hard
      • :/
      • VxJasonxV
        thankfully it was recently updated, so I saw metabrainz in the sidebar :D
      • CatCat goes back (not really ,starting now) to lego HP
      • CatCat
        oh and yea
      • VxJasonxV
        yes
      • reosarevok
        CatCat: I think they are the 12 new servers :)
      • CatCat
        zomg
      • VxJasonxV
        ^ +1
      • CatCat
        can we please call one of the Perry?!
      • them*
      • VxJasonxV
        Lego Harry Potter is amazingly fun.
      • CatCat
        you know perry
      • yes, yes it is
      • it really, really is
      • Nickii
        ianmorvdae Thank you again.
      • CatCat
        it's the most fun once you *finally* get a char with dark magic so you can finally get stuff
      • reosarevok
        CatCat, ask ruaok, but I wouldn't say no to it :p
      • SultS_
        I haven't played any lego games, and I can probably blame pricing on thath
      • CatCat
        they're about as expensiver as any other game though
      • also if you buy used they're rather cheap
      • SultS_
        I mean the steam/EA pricing, as in $=€
      • CatCat
        we get like lego batman and lego indiana jones at 199 NOK or something
      • uh o play it as consol though
      • SultS_
        yeah, I don't have any consoles.
      • CatCat
        s/o/I/
      • weirdo :P
      • jk
      • SultS_
        or many physical copies of games
      • haha
      • CatCat
        but i dont think dollah equals euro??
      • SultS_
        does for valve
      • reosarevok
        CatCat, tell that to some of the companies that sell games in Steam :p
      • CatCat
        i don't get it
      • kepstin
        huh, weird
      • CatCat
        it gets converted into nok for me anyway
      • kepstin
        I'm getting a lot of /fast/ 502 errors right now
      • reosarevok
        If it costs $50 in US, it costs �50 in Spain / Estonia sometimes
      • Which is stupid
      • SultS_
        even weirder, $=2x$, if you are australian
      • reosarevok
        kepstin: same
      • CatCat
        so.. whatdoes that mean? if something costs like 3 euro and 3 usd?
      • i get it for 3 nok or whaat ? XD
      • kepstin
        and inline searches aren't working for me atm :/