lib/bremen/soundcloud.rb in bremen-0.1.0 vs lib/bremen/soundcloud.rb in bremen-0.1.1
- old
+ new
@@ -43,9 +43,10 @@
uid: hash['id'],
url: hash['permalink_url'],
title: hash['title'],
author: hash['user']['username'],
length: (hash['duration'].to_i / 1000).round,
+ thumbnail_url: hash['artwork_url'] ? hash['artwork_url'].sub(%r{\?.*}, '') : nil,
created_at: Time.parse(hash['created_at']),
updated_at: Time.parse(hash['created_at']),
})
end