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.