Permalink
Browse files

Ask for the search term

  • Loading branch information...
1 parent fafff65 commit 121ae5942018972a499baeb099345d03535ab0da @danopia committed Feb 6, 2010
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

0 comments on commit 121ae59

Please sign in to comment.