Permalink
Browse files

Merge pull request #3 from EtienneLem/fix-current-url

Fix undefined method `rdio_url`
  • Loading branch information...
2 parents d85072f + baf3e52 commit 7ba73f3d2a8dc26aa86a5c62be5c2ff9febfdd6f @pengwynn committed Dec 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rdio.rb
View
@@ -54,7 +54,7 @@ def self.write_config
end
def self.current_track_key
- data = api.call 'getObjectFromUrl', { :url => rdio_url }
+ data = api.call 'getObjectFromUrl', { :url => bridge.current_url }
data['result']['key']
end
@@ -131,7 +131,7 @@ def self.add_to_collection(tracks)
command :browse do |c|
c.action do |global_options,options,args|
protocol = args.first == 'app' ? 'rdio' : 'http'
- exec "open '#{rdio_url protocol}'"
+ exec "open '#{bridge.current_url protocol}'"
end
end

0 comments on commit 7ba73f3

Please sign in to comment.