Live data from Hacker News

Serve Your Music Collection Using HTML5, Backbone, and Flask

git.zx2c4.com

51–60 of 86 posts

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#52

I'm not sure how possible it would be, but I'd love to see something like this with AirPlay support!

From the browser, it's a bit tricky, but it would be possible to ask the server to stream audio to AirPlay speakers. This would likely limit it to the subnet the server is on, but still could be useful.

Incidentally, I'm somewhat interested in the protocol: http://git.zx2c4.com/Airtunes2/about/

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#53

Amazing. Hat off to you, sir! I've stumbled through a few of such projects and most fell flat on their collective noses, at the latest when it came to seeking. zmusic-ng works phenomenally well. Next thing I want to try is over a slow and laggy connection, but that has to wait for later. One minor, minor gripe is that it uses a Makefile instead of the canonical setup.py for building. (did I mention "minor"?) For me p…

I'm glad you like the project!

Makefiles. I love Makefiles. I kind of dislike all these bloated new-fangled build-systems - Rake, Jake, Pip, Pap, Nodifier, Grunt, whatever else is on the street. A setup.py might be nice, though, for installing system-wide, but generally speaking, standard GNU Make is wonderful.

server.cfg influences where 'make deploy' and 'make upload' deploy things to. Check out the bottom section of the README for info.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#54
post #41

Wow, this is crazy because I'm working on a streaming music player of my own, also using HTML5, Backbone and Flask. (As well as Flask-SQLAlchemy and Mutagen, but those are obvious choices given Flask.) Congrats on shipping first. How long have you been working on this? I might actually use yours until my take on this is done. It certainly looks superior to Subsonic in every way. I'm still going to finish mine, becaus…

> How long have you been working on this?

Initial frontend prototype took about 30 minutes, and backend about the same. Then I spent a few hours polishing. Was mostly done in between other tasks over the course of a couple days. It's a tiny simple-ish project. But there's a lot of work to be done and things that can be added.

> I want a visually-oriented player with cover art very prominently featured

I'd love to have this!

Please feel welcome to submit any patches or improvements from your own project. It'd be nice to have some help on it.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#55
post #43
post #41

Wow, this is crazy because I'm working on a streaming music player of my own, also using HTML5, Backbone and Flask. (As well as Flask-SQLAlchemy and Mutagen, but those are obvious choices given Flask.) Congrats on shipping first. How long have you been working on this? I might actually use yours until my take on this is done. It certainly looks superior to Subsonic in every way. I'm still going to finish mine, becaus…

Wow, so many technologies. How do you people find out (and keep track) of these frameworks?

I asked Jack Groetzinger from Seatgeek.com, "what do web people use these days?" And he said, "Flask and Backbone, use Flask and Backbone," so that I did.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#56
post #49

Have you considered to implement subsonic api to support native apps for iphone and android? I run subsonic server on my home server and it's quite resource hungry.

This would be pretty cool. I hadn't considered it. But you say application support is widespread for their API. If so, it could be a worthwhile one to implement.

> I run subsonic server on my home server and it's quite resource hungry.

Yea, that's the thing about subsonic -- big bloated app. Lots of features, but it needs to start fresh and lean.

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#58

This is lovely - thanks a lot! I listen to a lot of foreign music and have had a hard time populating my zmusic database. There's a work-around (decode the relevant strings to Unicode) that seems to have worked but I have to leave for work before I'll be able to test this fully. I've never submitted a patch before and hope to use this as an opportunity to learn how to make one. I have a basic question, however: why d…

> I listen to a lot of foreign music and have had a hard time populating my zmusic database

Oh noes! I too have lots of foreign music in my collection, and it seemed to work fine. I'm using the tagging framework out of MusicBrainz' Picard application, so things should be pretty flawless. I wonder what happened... Maybe the encoding system-wide needs to be set to UTF-8 so Python picks this up? If you email me more information, I can take a look.

> why did you decide to use tab characters in your python?

I'm partial to Linux-kernel C-style. I like tabs. That's what they're for. Holy wars though. What else? I use VIM, KDE, and Gentoo. Death to Emacs, Gnome, and Mandrake! Ahh, preferences...

Re: Serve Your Music Collection Using HTML5, Backbone, and Flask

#60
post #36
post #16

Earlier quoted context omitted.

I must say, its not nearly as slick as the article's linked, and it uses flash

To be fair, the screenshots do not do it justice. The default theme is a lot more slick than the horrible blue themes in the screen shots. You also have to bare in mind that Subsonic also has native players for a whole bucket load of platforms (both mobile and desktop), supports video, transcodes, is multi user and has a tone of other neat functions. In many ways, Subsonic is more akin to Spotify.

From the site:

> Based on Java technology, ...

I stopped reading there. Bias? Maybe.

Post reply on HN