What is up with JB's birthday fight's data?
Posted: Fri Nov 01, 2013 8:40 am
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.
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.