Skip to content
Browse files

Support for adding sha1 hashes to a playlist on create

  • Loading branch information...
1 parent 63c094e commit 136ba994ca9e3efbc02d6f88f7d6f98bbec787e0 @mnutt committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/collections_controller.rb
View
1 app/controllers/collections_controller.rb
@@ -10,6 +10,7 @@ def index
def create
@collection = Limewire::Collection.create(params[:name])
+ @collection.update_items(params[:sha1s].split(',')) if params[:sha1s]
render :json => JSON::pretty_generate(@collection)
end

0 comments on commit 136ba99

Please sign in to comment.
Something went wrong with that request. Please try again.