#musicbrainz

/

      • canidae
        doh
      • / /g
      • if you want all
      • brianfreud
        lol... // gives you "", not "302-025-502-2" :P
      • canidae
        var catNum2 = catNum.replace(/ /,"-");
      • srotta
        brianfreud: It's not weird, it's typical unixy regex format. Derived from sed or whatever.
      • brianfreud
        thanks...
      • canidae
        :)
      • brianfreud
        why they mix regex and string formats as input... :P
      • canidae
        probably because regexp is quite powerful, but i'm sure there's another method that takes two strings instead of regex + string
      • brianfreud
        perhaps, though you wouldn't think the default replace method for the string class would use other than string,string
      • srotta
        Well, why not.
      • brianfreud
        and oddly, it still gives no space to hyphen replacement locally...
      • canidae
        sure you did it right? if not you must be using another browser locally or something :p
      • brianfreud
        var TestVar = form.inputbox.value.toString(); var catNum = "VSD-"+TestVar; var catNum2 = catNum.replace(/ /g,"-");
      • canidae
        if you haven't already, you should get firefox addon "firebug", it'll tell you if your javascript is borked
      • brianfreud
        oops, wrong cat (comes from an if)
      • this one: var catNum = "302 066 "+tempTestVar+" 2";
      • canidae
        what's "tempTestVar"?
      • ?
      • brianfreud
        var tempTestVar = TestVar-6000;
      • canidae
        try "alert(tempTestVar);" before that var catNum = "302 066 "+tempTestVar+" 2";
      • brianfreud
        so "6202" in the text field, TestVar = 6202, catNum = 302 066 202 2, catNum2 ought to be 302-066-202-2
      • instead I get catNum2 = 302 066 202 2 (so tempTestVar correctly = 202)
      • I can pull it off with an if, just was trying to do it correctly, rather than hacked :P
      • canidae
        err... are you doing the replace before or after var catNum = "302 066 "+tempTestVar+" 2";?
      • brianfreud
        after
      • SerialNumber^ has quit
      • canidae
        so... do a: var catNum = "302 066 "+tempTestVar+" 2"; alert(catNum); var catNum2 = catNum.replace(/ /g,"-"); alert(catNum2);
      • brianfreud
        DOH!
      • srotta
        And you're sure the browser rereads the JS source?
      • brianfreud is an idiot... goes to hide
      • brianfreud
        document.getElementById("statusTime").getElementsByTagName("a")[2].href, not document.getElementById("statusTime").getElementsByTagName("a")[0].href :D
      • the var calculated correctly... I just assigned it to the wrong anchor :D
      • canidae kicks id3v2 repeatedly
      • copper calls the cops
      • copper
        Until they get here I'm gonna film the whole scene with my cameraphone and I'll up it on the interwebs
      • aCiD2 joined the channel
      • Amblin- joined the channel
      • canidae
        what the hell is the idea by limiting the tag to only have 1 TALB frame, one TIT2 frame, etc?
      • copper
        Why do you want more than one?
      • canidae
        because it's quite common that one track got more than one artist
      • copper
        those are title frames
      • canidae
        album and title, yes
      • but also TPE1 is limited to 1 frame
      • TXXX is the exception, but you can't have multiple "TXXX:ARTIST" frames, for example
      • copper
        because TPE1 is the main artist
      • canidae
        you'd have to make it "TXXX:ARTIST", "TXXX:ARTIST2", "TXXX:ARTIST3", etc
      • copper
        even if you have a collaboration, TPE1 refers to the artist whose album the track is on, I assume
      • canidae
        4.2.2 TPE4 Interpreted, remixed, or otherwise modified by
      • srotta
        canidae: But you can have multiple values in one frame?
      • canidae
        you can quite fine have more than 1 "lead performer"
      • no
      • only 1 value
      • srotta
        canidae: No, multiple values, separated by null.
      • brianfreud
        I thought that was one change from v2.3 to 2.4, allowing multiple values in those fields?
      • canidae looks in the document for any evidence of that...
      • copper
        "There may only be one text information frame of its kind in an tag. All text information frames supports multiple strings, stored as a null separated list, where null is reperesented by the termination code for the charater encoding.
      • (from "4.2. Text information frames")
      • canidae
        yeah, you might actually be right
      • rejoice, then they're not completely braindead
      • copper
        It's only valid for ID3v2 2.4.0 though, from what I gathered.
      • 2.3.0 says "If the textstring is followed by a termination ($00 (00)) all the following information should be ignored and not be displayed."
      • canidae
        well, i only use 2.4.0 anyways, so that's okay
      • brianfreud
        copper: yes, that was my understanding from luks, that it was something added in 2.4
      • Amblin has quit
      • copper
        I'm going back to bed.
      • SerialNumber has quit
      • aCiD2_ joined the channel
      • aCiD2 has quit
      • outsidecontext has quit
      • brianfreud has quit
      • murdos has quit
      • Amberrock has quit
      • aCiD2_ has quit
      • Rondom has quit
      • brianfreud joined the channel
      • DrFrasierCrane has quit
      • brianfreud
        anyone else having issues getting any label listings to show up on test?
      • Label with MBID 3dd26d3b-7b24-4b84-a957-b43cffb0f1b6 not found in the database etc etc etc
      • all the label/cat#/barcode/media info's blank in all the releases too
      • CatCat
        natta!
      • warp
        goodnight mo
      • Jugdish
        brianfreud: there are only 29 labels on test, that may be why
      • brianfreud
        ah - thought the labels db carried over...
      • they show up in test. searches, but the event info and the actual label listings are missing
      • Jugdish
        test uses main's search server so they show up in search results, but it has a hella outdated db so only 29 of them are actually there
      • Yurim has quit