#musicbrainz

/

      • canidae
        doh
      • 2007-08-25 23733, 2007

      • canidae
        / /g
      • 2007-08-25 23736, 2007

      • canidae
        if you want all
      • 2007-08-25 23731, 2007

      • brianfreud
        lol... // gives you "", not "302-025-502-2" :P
      • 2007-08-25 23733, 2007

      • canidae
        var catNum2 = catNum.replace(/ /,"-");
      • 2007-08-25 23742, 2007

      • srotta
        brianfreud: It's not weird, it's typical unixy regex format. Derived from sed or whatever.
      • 2007-08-25 23744, 2007

      • brianfreud
        thanks...
      • 2007-08-25 23749, 2007

      • canidae
        :)
      • 2007-08-25 23703, 2007

      • brianfreud
        why they mix regex and string formats as input... :P
      • 2007-08-25 23741, 2007

      • canidae
        probably because regexp is quite powerful, but i'm sure there's another method that takes two strings instead of regex + string
      • 2007-08-25 23719, 2007

      • brianfreud
        perhaps, though you wouldn't think the default replace method for the string class would use other than string,string
      • 2007-08-25 23734, 2007

      • srotta
        Well, why not.
      • 2007-08-25 23703, 2007

      • brianfreud
        and oddly, it still gives no space to hyphen replacement locally...
      • 2007-08-25 23740, 2007

      • canidae
        sure you did it right? if not you must be using another browser locally or something :p
      • 2007-08-25 23701, 2007

      • brianfreud
        var TestVar = form.inputbox.value.toString(); var catNum = "VSD-"+TestVar; var catNum2 = catNum.replace(/ /g,"-");
      • 2007-08-25 23707, 2007

      • canidae
        if you haven't already, you should get firefox addon "firebug", it'll tell you if your javascript is borked
      • 2007-08-25 23718, 2007

      • brianfreud
        oops, wrong cat (comes from an if)
      • 2007-08-25 23733, 2007

      • brianfreud
        this one: var catNum = "302 066 "+tempTestVar+" 2";
      • 2007-08-25 23754, 2007

      • canidae
        what's "tempTestVar"?
      • 2007-08-25 23701, 2007

      • canidae
        ?
      • 2007-08-25 23704, 2007

      • brianfreud
        var tempTestVar = TestVar-6000;
      • 2007-08-25 23715, 2007

      • canidae
        try "alert(tempTestVar);" before that var catNum = "302 066 "+tempTestVar+" 2";
      • 2007-08-25 23726, 2007

      • brianfreud
        so "6202" in the text field, TestVar = 6202, catNum = 302 066 202 2, catNum2 ought to be 302-066-202-2
      • 2007-08-25 23707, 2007

      • brianfreud
        instead I get catNum2 = 302 066 202 2 (so tempTestVar correctly = 202)
      • 2007-08-25 23754, 2007

      • brianfreud
        I can pull it off with an if, just was trying to do it correctly, rather than hacked :P
      • 2007-08-25 23704, 2007

      • canidae
        err... are you doing the replace before or after var catNum = "302 066 "+tempTestVar+" 2";?
      • 2007-08-25 23716, 2007

      • brianfreud
        after
      • 2007-08-25 23741, 2007

      • SerialNumber^ has quit
      • 2007-08-25 23745, 2007

      • canidae
        so... do a: var catNum = "302 066 "+tempTestVar+" 2"; alert(catNum); var catNum2 = catNum.replace(/ /g,"-"); alert(catNum2);
      • 2007-08-25 23753, 2007

      • brianfreud
        DOH!
      • 2007-08-25 23755, 2007

      • srotta
        And you're sure the browser rereads the JS source?
      • 2007-08-25 23700, 2007

      • brianfreud is an idiot... goes to hide
      • 2007-08-25 23731, 2007

      • brianfreud
        document.getElementById("statusTime").getElementsByTagName("a")[2].href, not document.getElementById("statusTime").getElementsByTagName("a")[0].href :D
      • 2007-08-25 23747, 2007

      • brianfreud
        the var calculated correctly... I just assigned it to the wrong anchor :D
      • 2007-08-25 23722, 2007

      • canidae kicks id3v2 repeatedly
      • 2007-08-25 23751, 2007

      • copper calls the cops
      • 2007-08-25 23734, 2007

      • copper
        Until they get here I'm gonna film the whole scene with my cameraphone and I'll up it on the interwebs
      • 2007-08-25 23706, 2007

      • aCiD2 joined the channel
      • 2007-08-25 23718, 2007

      • Amblin- joined the channel
      • 2007-08-25 23734, 2007

      • canidae
        what the hell is the idea by limiting the tag to only have 1 TALB frame, one TIT2 frame, etc?
      • 2007-08-25 23708, 2007

      • copper
        Why do you want more than one?
      • 2007-08-25 23735, 2007

      • canidae
        because it's quite common that one track got more than one artist
      • 2007-08-25 23752, 2007

      • copper
        those are title frames
      • 2007-08-25 23716, 2007

      • canidae
        album and title, yes
      • 2007-08-25 23722, 2007

      • canidae
        but also TPE1 is limited to 1 frame
      • 2007-08-25 23744, 2007

      • canidae
        TXXX is the exception, but you can't have multiple "TXXX:ARTIST" frames, for example
      • 2007-08-25 23700, 2007

      • copper
        because TPE1 is the main artist
      • 2007-08-25 23704, 2007

      • canidae
        you'd have to make it "TXXX:ARTIST", "TXXX:ARTIST2", "TXXX:ARTIST3", etc
      • 2007-08-25 23723, 2007

      • copper
        even if you have a collaboration, TPE1 refers to the artist whose album the track is on, I assume
      • 2007-08-25 23741, 2007

      • canidae
        4.2.2 TPE4 Interpreted, remixed, or otherwise modified by
      • 2007-08-25 23749, 2007

      • srotta
        canidae: But you can have multiple values in one frame?
      • 2007-08-25 23750, 2007

      • canidae
        you can quite fine have more than 1 "lead performer"
      • 2007-08-25 23753, 2007

      • canidae
        no
      • 2007-08-25 23758, 2007

      • canidae
        only 1 value
      • 2007-08-25 23728, 2007

      • srotta
        canidae: No, multiple values, separated by null.
      • 2007-08-25 23742, 2007

      • brianfreud
        I thought that was one change from v2.3 to 2.4, allowing multiple values in those fields?
      • 2007-08-25 23743, 2007

      • canidae looks in the document for any evidence of that...
      • 2007-08-25 23717, 2007

      • 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.
      • 2007-08-25 23751, 2007

      • copper
        (from "4.2. Text information frames")
      • 2007-08-25 23755, 2007

      • copper
      • 2007-08-25 23704, 2007

      • canidae
        yeah, you might actually be right
      • 2007-08-25 23714, 2007

      • canidae
        rejoice, then they're not completely braindead
      • 2007-08-25 23723, 2007

      • copper
        It's only valid for ID3v2 2.4.0 though, from what I gathered.
      • 2007-08-25 23737, 2007

      • copper
        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."
      • 2007-08-25 23702, 2007

      • canidae
        well, i only use 2.4.0 anyways, so that's okay
      • 2007-08-25 23704, 2007

      • brianfreud
        copper: yes, that was my understanding from luks, that it was something added in 2.4
      • 2007-08-25 23711, 2007

      • Amblin has quit
      • 2007-08-25 23729, 2007

      • copper
        I'm going back to bed.
      • 2007-08-25 23752, 2007

      • SerialNumber has quit
      • 2007-08-25 23751, 2007

      • aCiD2_ joined the channel
      • 2007-08-25 23746, 2007

      • aCiD2 has quit
      • 2007-08-25 23700, 2007

      • outsidecontext has quit
      • 2007-08-25 23722, 2007

      • brianfreud has quit
      • 2007-08-25 23748, 2007

      • murdos has quit
      • 2007-08-25 23745, 2007

      • Amberrock has quit
      • 2007-08-25 23757, 2007

      • aCiD2_ has quit
      • 2007-08-25 23737, 2007

      • Rondom has quit
      • 2007-08-25 23723, 2007

      • brianfreud joined the channel
      • 2007-08-25 23746, 2007

      • DrFrasierCrane has quit
      • 2007-08-25 23730, 2007

      • brianfreud
        anyone else having issues getting any label listings to show up on test?
      • 2007-08-25 23742, 2007

      • brianfreud
        Label with MBID 3dd26d3b-7b24-4b84-a957-b43cffb0f1b6 not found in the database etc etc etc
      • 2007-08-25 23739, 2007

      • brianfreud
        all the label/cat#/barcode/media info's blank in all the releases too
      • 2007-08-25 23715, 2007

      • CatCat
        natta!
      • 2007-08-25 23752, 2007

      • warp
        goodnight mo
      • 2007-08-25 23744, 2007

      • Jugdish
        brianfreud: there are only 29 labels on test, that may be why
      • 2007-08-25 23742, 2007

      • brianfreud
        ah - thought the labels db carried over...
      • 2007-08-25 23700, 2007

      • brianfreud
        they show up in test. searches, but the event info and the actual label listings are missing
      • 2007-08-25 23735, 2007

      • 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
      • 2007-08-25 23716, 2007

      • Yurim has quit