play / play Goto Github PK
View Code? Open in Web Editor NEWplay ► — your company's dj
Home Page: http://zachholman.com/screencast/play/
License: MIT License
play ► — your company's dj
Home Page: http://zachholman.com/screencast/play/
License: MIT License
Download an album, bro. Trickier, but MORE IMPORTANT.
Is it possible to make the web ui refresh after events like skipping and completion of a song, so that it updates the view?
This is no way major, but in README.md @holman points to http://twitter.com and not to http://twitter.com/holman
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>'
return current volume
My library is indexed 3 times, yeah, 3 times, no more, no less.
API endpoint to download/stream a file. Specifically for now playing, although probably could work for any of it, really.
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.
AUDIO VIDEO DISCO
play-next should have a rad favicon and apple-touch-icon.png for the iPad view.
Because it ain't work
There should be better search. It should be more fuzzy. For example "gambino" doesn't match childish gambino.
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.
Rad.
fuck a color garth brooks
We know the current schema version, we know what we need to get to... auto-migrate these fools.
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?
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.
I have the same error as this fella https://github.com/holman/play/issues/28
I cannot resolve the issue, here is my output:
https://gist.github.com/1578706
Can anyone help me with this, I feel a bit stranded...
I am getting this error on the callback page for the github oauth flow.
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.
I'd be cool to basically be able to star a song from campfire, then have hubot play all of them back when requested.
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.
play
commands to a tableTrying 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.
The new play looks so fucking good. Show it.
Let it pause on the directions with the URLs, and then press enter to open
the URL.
Add an album view would be mucho nifty.
"I like this" should return:
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.
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
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.
Add Travis to this project to avoid #18.
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 queuing albums the order of the album is important. Right now play orders them by alphabetic order (at least, it seems like it).
It's not fun.
Indexing can take a long time, but I'm not sure I understand the rationale behind forking it.
Purely because I know I'll never back up the work mini often.
Seems like this should be done in the setup
script. And probably the index
step too.
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?
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.
it'll be rad!
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
You know, for all of those 100% legally downloadable albums. http://[GITHUB'S PLAY SERVER]/album/111/download
for example.
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.
This is where we'll find the shrimp.
do it
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.