Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ask for the search term

  • Loading branch information...
commit 121ae5942018972a499baeb099345d03535ab0da 1 parent fafff65
@danopia authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 test.rb
View
7 test.rb
@@ -10,8 +10,11 @@
run_dbus client
-puts "Searching for 'honky tonk':"
-results = client.search_songs('honky tonk')['Return']
+puts "Enter a search query:"
+query = gets
+puts
+puts "Searching for \"#{query}\":"
+results = client.search_songs(query)['Return']
results.each do |result|
puts "#{results.index result} - #{result['Name']} - #{result['ArtistName']} - #{result['AlbumName']}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.