Closed chrisrbnelson closed 12 years ago
When adding a song to the queue, it should check if it already exists. If so, it can simply report back its place in the queue, otherwise use current behaviour.
This should be pretty easy, in controllers/queue_controller#create:
if $redis.lindex(params[:uri]).nil? # Add to queue end
http://redis.io/commands/lindex
When adding a song to the queue, it should check if it already exists. If so, it can simply report back its place in the queue, otherwise use current behaviour.