What is up with JB's birthday fight's data?

Let us know when something isn't working correctly, or if you find a typo. Do not post complaints or suggestions here.
Post Reply
User avatar
Lunkhead
You're No Good
Posts: 8104
Joined: Sat Sep 25, 2004 12:14 pm
Instruments: many
Recording Method: cubase/mac/tascam4x4
Submitting as: Berkeley Social Scene, Merisan, Tiny Robots
Pronouns: he/him
Location: Berkeley, CA
Contact:

What is up with JB's birthday fight's data?

Post by Lunkhead »

It looks like the fight's key changed from "39+1=jb" when it was a "current" fight to "jbturns40" when it became an archived fight? If I had to guess, it might have been because "39+1=jb" didn't actually work as a fight key... (Some libraries don't percent encode plusses in URLs, assuming they are representing spaces, but in this case the "+" should be encoded as "%2B".) In the Jukebox I don't have things set up to detect changes in the fight key, they remain whatever they were when the fight was current. So for one thing, the Jukebox page:

http://sfjukebox.org/fights/39+1=jb

... is assuming the real archive page should be:

http://www.songfight.org/songpage.php?key=39+1=jb

... when it's actually

http://www.songfight.org/songpage.php?key=jbturns40

Also weird is that the image URLs for the cover art seem to use the old/original key for the fight:

http://www.songfight.org/pix/39+1=jb/cover100.jpg
http://www.songfight.org/pix/39+1=jb/cover400.jpg

Any insight into what happened? I'm not sure how I'm going to deal with this in the Jukebox side... I'm auto generating the real archive URLs based on the fight key, but maybe I need to change that to be a separately stored piece of data so I can make it be inconsistent with the fight key in cases like this...? Ugh.
User avatar
fluffy
Eruption
Posts: 11028
Joined: Sat Sep 25, 2004 10:56 am
Instruments: sometimes
Recording Method: Logic Pro X
Submitting as: Sockpuppet
Pronouns: she/they
Location: Seattle-ish
Contact:

Re: What is up with JB's birthday fight's data?

Post by fluffy »

File URLs never change. I don't know why the archive key changed - probably something had problems with the URL encoding of + and/or = (which needs to encode to %3D). As always, our URL handling is a mess.
User avatar
Lunkhead
You're No Good
Posts: 8104
Joined: Sat Sep 25, 2004 12:14 pm
Instruments: many
Recording Method: cubase/mac/tascam4x4
Submitting as: Berkeley Social Scene, Merisan, Tiny Robots
Pronouns: he/him
Location: Berkeley, CA
Contact:

Re: What is up with JB's birthday fight's data?

Post by Lunkhead »

Yes, URLs are a pain. My code is screwed up because I'm not percent encoding path elements in some cases... which is breaking e.g. my links for the individual songs of the 39+1=jb fight and also the json/m3u links for the artist "?". :/ Fun times.

EDIT: I think my issues are also related to how I am converting path variables into request parameters behind the scene because when I started the Jukebox it seemed like path variables with slashes in them (e.g. artist names like "AB/7A") were screwing things up...
User avatar
jb
Hot for Teacher
Posts: 4159
Joined: Sat Sep 25, 2004 10:12 am
Instruments: Guitar, Cello, Keys, Uke, Vox, Perc
Recording Method: Logic X
Submitting as: The John Benjamin Band
Pronouns: he/him
Location: WASHINGTON, DC
Contact:

Re: What is up with JB's birthday fight's data?

Post by jb »

nerrrrrrds
blippity blop ya don’t stop heyyyyyyyyy
User avatar
Spud
Hot for Teacher
Posts: 4770
Joined: Fri Sep 24, 2004 10:25 am
Instruments: Bass, Keyboards, eHorn
Submitting as: Octothorpe
Location: Seattle
Contact:

Re: What is up with JB's birthday fight's data?

Post by Spud »

What you see is what you get. There are no guarantees.
"I only listen to good music. And Octothorpe." - Marcus Kellis
Song Fight! The Rockening
Post Reply