Skip to content
Browse files

Cleanup EOL whitespace

  • Loading branch information...
1 parent acb7aba commit bbc597e96f7d5dadec70c00fd0cac6b1ae849550 @sferik sferik committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 pizza.rb
View
10 pizza.rb
@@ -117,7 +117,7 @@ def all_tracks
tracks.select! {|entry| selected_choices.include? entry[tag]}
end
end
-
+
available["Tracks"]=tracks.sort_by(&track_sort_by(params[:filters]))
available.to_json
@@ -156,7 +156,7 @@ def all_tracks
end
#TODO: return
end
-put '/queue/clear' do
+put '/queue/clear' do
$mpd.send_command("clear")
#TODO: return
'["ok"]'
@@ -180,7 +180,7 @@ def all_tracks
config.oauth_token = ENV["TWITTER_OAUTH_TOKEN"]
config.oauth_token_secret = ENV["OAUTH_TOKEN_SECRET"]
end
-
+
a = $mpd.queue.map {|x| x.merge({"Requester"=>$playlist_hosts[x["Id"]]})}.to_json
Twitter.update("#{a}")
end
@@ -189,7 +189,7 @@ def all_tracks
post '/playback/next' do
$mpd.send_command("next")
'["ok"]'
-
+
end
post '/playback/previous' do
$mpd.send_command("previous")
@@ -208,4 +208,4 @@ def all_tracks
put '/playback/setvol' do
$mpd.send_command("setvol #{params[:vol]}")
'["ok"]'
-end
+end

0 comments on commit bbc597e

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