lib/itunes/application.rb in itunes-client-0.0.5 vs lib/itunes/application.rb in itunes-client-0.0.6
- old
+ new
@@ -11,10 +11,10 @@
attr_accessor :tracks
def add(file_path)
persistent_id = execute_script("#{script_dir}/add.scpt", file_path)
- Track.find_by(persistent_id: persistent_id)
+ Track.find_by(persistent_id: persistent_id).first
end
def stop
execute_script("#{script_dir}/stop.scpt")
self