Page 1 of 12

Song Fight! Jukebox

Posted: Mon Apr 26, 2010 4:32 pm
by Lunkhead
I've mentioned this project in another thread, and was inspired to start working on it by an old thread from this section of the forums. Some of you may know about it already, some of you may not. Anyway, I thought I would start a thread specific to it. I just updated it recently with some more bug fixes and I also added the ability for people to register and log in. Currently there aren't any additional features for registered users, but any new features I implement for a while will likely only be for registered users, as I'll have to have some way to associate the data for the features with specific users.

http://sfjukebox.org/

One caveat is that I've really only tested it on Firefox. Last time I seriously tried it on IE/Windows it looked like the Flash MP3 player I use couldn't stream music from songfight.org, unfortunately. EDIT: Actually, it seems to work on IE in Windows, at least IE7/Windows XP.

Re: The Unofficial Song Fight! Jukebox

Posted: Mon Apr 26, 2010 4:33 pm
by fluffy
Probably due to the anti-hotlink measures. I can add an exception for that page, if that would help.

[EDIT] Added.

Re: The Unofficial Song Fight! Jukebox

Posted: Mon Apr 26, 2010 4:51 pm
by Lunkhead
Ah, that explains why it was working when I just tested it. Thanks fluffy!

EDIT: So yeah, ignored the "FIREFOX REQUIRED" bit on the home page. It seems to work for me in Firefox, IE, and Chrome. Yay!

Re: The Unofficial Song Fight! Jukebox

Posted: Sat Sep 11, 2010 10:04 am
by Lunkhead
I forgot I had a thread just for this project.

Roymond mentioned HTML5 audio for this, to make it work on iOS devices. Well, it turns out the underlying JavaScript/Flash API I've been using has been upgraded to also provide some beta support for HTML5 audio. It is supposed to be a seamless behind the scenes substitution for Flash for iOS devices. I have rolled out this upgrade because it also speeds up the loading of the Flash MP3 player a ton, and because it did in fact seem to be a straightforward upgrade process. I have no iOS device to test the HTML5 audio support, though. So those of you with iPhones/iPads/iPod touches, please give it a whirl and see if it works. This is making me want to buy a new iPod touch even more...

http://sfjukebox.org/

Re: The Unofficial Song Fight! Jukebox

Posted: Sat Sep 11, 2010 10:54 am
by Lunkhead
Reports are coming in that it works on the iPhone, and that the music will even keep playing in the background while you switch away from Safari. Neato.

Re: The Unofficial Song Fight! Jukebox

Posted: Sun Sep 12, 2010 8:53 am
by roymond
Yes, it seems to scroll and play fine on the iPad. Thanks! This is really quite nice, Sam.

The artist pages don't seem to pick up artwork.

Other unreasonable requests:
- logged-in members' ability to "thumbs up/down" songs/artists
- random playlist of thumbs-up selections (reshuffled each time)
- playlist avoidance of thumbs-down songs/artists
- total random playlist (reshuffled each time)
- Create/Delete/Edit playlists
- "Playlists" tab to manage playlists

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 10:05 am
by Lunkhead
I just added a site-wide search popup available from the top navigation, to make it easier to find fights, artists, and songs. There's an autocomplete box for artists, an autocomplete box for fights, and a search form for songs with fields for artist name and fight title.

Roymond, thanks for checking it out and for signing up. It looks like I've got about 20 legit signups. I'm going to add some more basic navigation (like newer/older fight links on the fight page) then start thinking about features for logged in users.

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 11:10 am
by fluffy
I don't suppose there's a way to change one's password?

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 11:20 am
by Lunkhead
What, you don't like your randomly generated gibberish password? But it's so secure! Seriously, though, there is no way to change your password yet. Logging in doesn't really get you anything either, at this point. I mostly just put the registration and login there to see if anybody would sign up...

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 11:26 am
by fluffy
OH NO NOW YOU KNOW MY EMAIL ADDRESS

Actually one cool thing you could do with user profiles is have a way of listing your various Song Fight band names and so on (possibly with a "role" in the case of groups), in addition to the usual linking to one's own website(s) and whatever. And then that'd give a way for people to explore connections between artists.

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 1:59 pm
by roymond
fluffy wrote:And then that'd give a way for people to explore connections between artists.
Yes, I would LOVE this. Plus, make iTunes, Napster and every other music service work this way :)

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 4:21 pm
by Lunkhead
fluffy, you are responsible for an anomaly:

http://sfjukebox.org/songs/so_aggravati ... 0porcupine

So, no features for you. ;)

EDIT: Doh, forgot to release a code change, wait a minute for it to see what I mean.

Re: The Unofficial Song Fight! Jukebox

Posted: Thu Sep 16, 2010 10:04 pm
by fluffy
Hey, I had originally submitted them as 'fluffy porcupine 1' 'fluffy porcupine 2' and 'fluffy porcupine 3'. Spud later changed that to "fix" the archive.

Re: The Unofficial Song Fight! Jukebox

Posted: Sat Sep 18, 2010 2:51 pm
by Lunkhead
roymond wrote: - total random playlist (reshuffled each time)
You can get lists of random songs like this:

http://sfjukebox.org/songs/random?numSongs=50
http://sfjukebox.org/songs/random.m3u?numSongs=50

If you put in a big enough number (e.g. 10000) you can have a random list of all the songs in the archive, though that kind of thing takes a very long time to load.

Re: The Unofficial Song Fight! Jukebox

Posted: Sat Sep 18, 2010 7:32 pm
by roymond
Sam - on my iPad, when I play a random list, and any other time that tiny, itty bitty player that is almost an <hr> is used instead of the larger one, it seems we can't play songs by touching their line.  I have to use the player controls. Something on the page doesn't let you play a song by touching its row. 

Re: The Unofficial Song Fight! Jukebox

Posted: Sat Sep 18, 2010 7:48 pm
by Lunkhead
Oh, right. I haven't overhauled the pages with the thin player yet. You still have to double-click on the row to get the song to play on those. There's a tooltip explaining that if you hover over the row, but of course you can't hover because you're on a touchscreen. Doh.

Re: The Unofficial Song Fight! Jukebox

Posted: Sun Sep 19, 2010 2:22 pm
by Spud
Lunkhead wrote:fluffy, you are responsible for an anomaly:

http://www.bozos.com/sf/songs/so_aggrav ... 0porcupine
What is the anomoly?

Re: The Unofficial Song Fight! Jukebox

Posted: Sun Sep 19, 2010 2:48 pm
by fluffy
I had three versions of the same song in "So Aggravating." Presumably the anomaly is that on the player it's impossible to select just one of them, because of the lack of any sort of item normalization and Sam's use of the artist-title as the unique item key instead of something more appropriate such as file URL.

Re: The Unofficial Song Fight! Jukebox

Posted: Sun Sep 19, 2010 5:31 pm
by Lunkhead
It's an anomaly because if it weren't for that one time one could safely assume that (title + artist name) uniquely identifies a song in the archive. Instead (title + artist name) might identify 1 or more songs in a fight by an artist.

But this wouldn't be fun without the anomalies! ;) Speaking of which, it looks like there are still issues with X<sub>0</sub>:

http://www.songfight.org/songpage.php?k ... d_you_know
http://www.songfight.org/artistpage.php ... rtkey=date

If artist names are going to contain HTML you should probably make sure that all <s and >s in HTML tags in artist names are really <s and >s and not <s and &gts;s (and that all &s are &s not just raw &s). And the artist key can have <s and >s in it, as those are valid characters in a URL. (Also, you can encode an ampersand in a URL by using %26, rather than _.)

I'm not trying to be a smartass, just trying to help out.

Re: The Unofficial Song Fight! Jukebox

Posted: Sun Sep 19, 2010 9:53 pm
by Spud
I appreciate your not being a smart ass. I really do.

Re: The Unofficial Song Fight! Jukebox

Posted: Mon Sep 20, 2010 7:58 am
by roymond
Spud wrote:I appreciate your not being a smart ass. I really do.
Well, he only said he wasn't trying to be one.

Re: The Unofficial Song Fight! Jukebox

Posted: Tue Sep 21, 2010 9:28 am
by Spud
Lunkhead wrote:...it looks like there are still issues with X<sub>0</sub>:

http://www.songfight.org/songpage.php?k ... d_you_know
http://www.songfight.org/artistpage.php ... rtkey=date
I believe that the archive now consistently shows the band name the way the artist prefers it. The key, on the other hand, is x0.