Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.79 KB

File metadata and controls

57 lines (33 loc) · 1.79 KB

Mixtape.js

Here's a video of this junk.

Mixtape.js is a small node app which I built to listen to songs posted to the blog NahRight... I didn't want to have to manually click though each song when programming...

Someday I'd like to see this evolve into a tumbltape type project, but for any website... not just tumblr.

Currently the ui is stolen from Tim Van Damme's amazing The Box. I feel bad about that sorta.

At this time, mixtape.js will only work on safari & chrome (mp3s...html5... it's a whole thing).

Stations

You can add your own stations by editing the config.js file. Currently the only stations are "nahright" and "unpiano"...

To add a new station, simply add to the stations object in config.js like this:

exports.stations = {

  //just add this newstation below nahright and other stations

  newstation: {
    name: 'New Station',
    host: 'http://pathToHost.com'
    page: '/page/path/' //will be used to scrape muliple pages
  }

}

For stations to work, their will need to be links with mp3s on the blog you are trying to scrape. (nahright's station doesn't have this, but it has it's own custom scraper... so yeah).

To listen to your new station just go to:

http://localhost:3000/listen/newstation

Note: that localhost:3000/ will play the unpiano station by default

Getting this running

To install dependencies just run the line below from the application route:

npm install

Also this uses submodules for jquery stuff... so make sure to do:

git submodule update --init

and also make the jquery build... do that by going to the root of this project, then:

cd ./public/js/lib/jquery/
make

you'll need to have make installed.