Giter Club home page Giter Club logo

play's People

Contributors

abdinoor avatar abuisman avatar anaisbetts avatar atmos avatar benbalter avatar benburkert avatar calebhearth avatar dcramer avatar defunkt avatar dhiemstra avatar dtorres avatar gjtorikian avatar holman avatar invalidusrname avatar jasoncostello avatar joeyw avatar kevinsawicki avatar maddox avatar mattia avatar medwards avatar mtodd avatar nandub avatar nickborromeo avatar roryokane avatar rtomayko avatar tmm1 avatar tombell avatar trobrock avatar wfarr avatar willglynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

play's Issues

Play Queue - Refresh

Is it possible to make the web ui refresh after events like skipping and completion of a song, so that it updates the view?

index fails when non-US-ASCII filename encountered

pair@harkness:~/dev/play(master+)$ bin/play index
/Users/pair/dev/play/lib/play/library.rb:20:in `split': invalid byte sequence in US-ASCII (ArgumentError)
    from /Users/pair/dev/play/lib/play/library.rb:20:in `fs_songs'
    from /Users/pair/dev/play/lib/play/library.rb:30:in `import_songs'
    from bin/play:41:in `block in index_music'
    from bin/play:41:in `fork'
    from bin/play:41:in `index_music'
    from bin/play:62:in `<main>'

Songs repeated

My library is indexed 3 times, yeah, 3 times, no more, no less.

Download a file

API endpoint to download/stream a file. Specifically for now playing, although probably could work for any of it, really.

mysql2 adapter

Zach,

This really isn't an issue with play, but it was a frustration I had to deal with when installing.

establish_connection’: Please install the mysql2 adapter:gem install activerecord-mysql2-adapter` (no such file to load — >active_record/connection_adapters/mysql2_adapter) (RuntimeError

In order to correct the issue I had to run the following command:

sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle

Thought it might be useful for someone.

Nice application. Off the topic, I've loved your recent banter with Scott Hanselman and Rob Conery. Excellent post on the matter.

favicon

play-next should have a rad favicon and apple-touch-icon.png for the iPad view.

Support for m4a

I just realized after an hour that Play doesn't add my new songs to the library because they are lossless audio.

Like I said before, not really a ruby guy but I gladly open a PR if you could give me some pointers.

Auto-migrate

We know the current schema version, we know what we need to get to... auto-migrate these fools.

indexing + dupes

Play just stops indexing after 5 seconds and prints out 9 of these messages
id3v2 tag not fully parsed: tag size is > 50_000_000

Any particular idea why?

Also, it might be because of the indexing error, I have tons of dupes in play's database and library. Tho none in iTunes
This is bugging me off, any ideas?

My gravatar's not showing up

http://REDACTED/defunkt

Where's it get the email address from? My Campfire user has a Gravatar, but for some reason my Play user does not.

Assuming I just don't know which damn email I'm using with Play, maybe displaying your email address on the profile page would be helpful.

yajl segmentation fault on setup

All good installing it using bin/setup up to the end:

  + Migrating your database.
/Users/ralf/.rvm/gems/ruby-1.8.7-p352/gems/yajl-ruby-1.0.0/lib/yajl/yajl.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.3.0]    

bin/setup-darwin: line 123: 25705 Abort trap: 6           bin/play migrate 2>&1 > /dev/null

Tried reinstalling 1.8.7 with RVM, no luck though, any idea? I'm no ruby man so this is though.

Play Queue - Play States

Currently, when a song begins to play, it's removed from the queue. It'd be rad if it was given a class of 'Currently Playing' and if a song has just finished playing, it can have a 'Recently Played' state. Then you could style those states in the web view and give depth to the queue.

Clean up README

  • Reduce the play commands to a table
  • review office integrations
  • update current status
  • link to screencast

Starring via browser broken?

Trying to star songs on OS X Lion using Chrome or Safari results in an endless spinner, and it can't seem to tell which songs have previously been starred.

Starring via API works (ie Hubot will add line to the table), it's just the browser end.

screenshot

The new play looks so fucking good. Show it.

Stars and API responses

"I like this" should return:

  • What's currently playing
  • Maybe others who have ⭐d this song

Let Foreman do the work

I think this could simplify bin/play, and you can launch web and server at the same time. Don't detach the music server perhaps.

mysql2 error on install?

I had been running play without issue on my laptop, but decided to move it to our work server (mac running 10.7.2 with nothing installed)

I installed mysql and then attempted to install play using the system ruby, but always run into the following:

  + Migrating your database.
/Library/Ruby/Gems/1.8/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:71:in `establish_connection': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (RuntimeError)
  Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
  Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle)
    from /Users/cwd/play/lib/play/app.rb:29
    from /Library/Ruby/Gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1273:in `configure'
    from /Users/cwd/play/lib/play/app.rb:25
    from ./bin/../lib/play.rb:18:in `require'
    from ./bin/../lib/play.rb:18
    from bin/play:6:in `require'
    from bin/play:6

Please add 1.9 support

Tried to run bin/setup on 1.9.2-p290 and 1.9.3-p0. Neither worked (both complained about SystemTimer, which I believe only works on MRI 1.8).

Shit needs to have ★s. How can this project not have ★s. ★s are pretty fucking important.

  • Create an API endpoint to star the currently-playing song
  • Create an API endpoint to play 10 from your starred song list
  • Maybe show these in the web interface

Travis

Add Travis to this project to avoid #18.

null reference

mainly my fault, but if your public profile isn't filled out, OAuth will put a user entry into the db with null for everything except id and login. Applications works fine but when you load the profile get gravatar fails since email is nil.

user.rb

def gravatar_id
Digest::MD5.hexdigest(email)
end

When last.fm fails to find album art, ugliness ensues

Formalizing this into a proper issue. There are already two branches which solve them which are blocked on aesthetic grounds. #57 became #59 due to a preference to have a placeholder image instead of falling back to text. #59 needs a better placeholder image, but I'm not capable of making one.

Why does index fork?

Indexing can take a long time, but I'm not sure I understand the rationale behind forking it.

bin/backup

Purely because I know I'll never back up the work mini often.

Error on building native extensions

I keep getting this error when doing gem install play

ERROR:  Error installing play:
ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.7.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1 -fno-common -pipe  -o system_timer_native.o -c system_timer_native.c
In file included from system_timer_native.c:8:
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
system_timer_native.c: In function ‘install_ruby_sigalrm_handler’:
system_timer_native.c:211: error: ‘rb_thread_critical’ undeclared (first use in this function)
system_timer_native.c:211: error: (Each undeclared identifier is reported only once
system_timer_native.c:211: error: for each function it appears in.)
system_timer_native.c: In function ‘restore_original_ruby_sigalrm_handler’:
system_timer_native.c:217: error: ‘rb_thread_critical’ undeclared (first use in this function)
make: *** [system_timer_native.o] Error 1


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3/ext/system_timer/gem_make.out

Any solutions?

Use votes for "play something I'd like" if stars aren't available

It looks like play_stars only uses stars and not votes at all. If a user has requested songs but hasn't actually starred anything, this causes a 500 error as of fcb91e1ba and causes hubot to crash if you ask it to play something you like.

Might be pragmatic just to avoid the 500 error for now. Arguably, requests != liked songs.

playcount

vote.count is being used to populate the playcount on the show_song page.

show_song.rb

def plays
@song.votes.count
end

I would assume this would be

def plays
@song.playcount || 0
end

Web server pages not displaying any songs

All the pages on the web server do not display any songs. If I queue manually (/add/id) the songs play, but the web interface still shows no songs in the queue. The user profile pages do not show an avatar or any songs. The web server process does not show any issues and all the web pages produce a HTTP Status 200.

NoMethodError when going to /artist/something

Hey,

I managed to install play on Ubuntu 11.4, replacing afplay by mpg123, now I hear the music I added to my Music folder but I can't add a particular album because when I want to play for example some "Ace of Base" I receive this error :

NoMethodError at /artist/Ace+of+Base
undefined method `songs' for nil:NilClass
file: app.rb location: GET /artist/* line: 110

I'm completely new to Ruby (i know Python though), node.js etc.. but I'm very interested in this particular project and I would like to learn but I confess that I did not manage to get rid of this error. It doesn't seem that there is an error in app.rb.

Thank you for your help, I hope that i will manage to get this very cool program running!

@edit :

I finally could access to one of the artist of my library putting %20 instead of + for the spaces. It should be cool though if play didn't show such a nasty error when an artist is not found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.