Sha256: 82420bab09cdd68552875bea42d55a3a0ea291dc131c629715b5d2f7b35a4871
Contents?: true
Size: 335 Bytes
Versions: 5
Compression:
Stored size: 335 Bytes
Contents
module SpotifyToMp3 class Spotify def get_track(uri) content = open('http://ws.spotify.com/lookup/1/.json?uri=' + CGI.escape(uri)) json = JSON.parse(content.string) Track.new(json) end def resolvable_uri?(uri) uri.start_with?('http://open.spotify.com/track/', 'spotify:track:') end end end
Version data entries
5 entries across 5 versions & 1 rubygems