lib/firstfm/track.rb in firstfm-0.5.0 vs lib/firstfm/track.rb in firstfm-0.5.1
- old
+ new
@@ -32,10 +32,10 @@
track.rank = hash["rank"].to_i
track.name = hash["name"]
track.mbid = hash["mbid"]
track.url = hash["url"]
track.listeners = hash["listeners"].to_i
- track.streamable = hash["streamable"] == "1"
+ track.streamable = (hash["streamable"]["__content__"] ? hash["streamable"]["__content__"] == "1" : hash["streamable"] == "1")
track.images = hash["image"]
track.artist = hash["artist"].is_a?(Hash) ? Artist.init_from_hash(hash["artist"]) : Artist.new(:name => hash["artist"])
end
end
\ No newline at end of file