Permalink
Browse files

Fix likes count for Soundcloud

  • Loading branch information...
1 parent b182938 commit cd794ba4ec889f7eff04b3a1296e960fa68f408d Matjaž Finžgar committed Mar 4, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/servisi.coffee
View
@@ -30,7 +30,7 @@ module.exports = (bot) ->
bot.fetchJSON "http://api.soundcloud.com/tracks.json?order=hotness&client_id=93e33e327fd8a9b77becd179652272e2&q=#{encodeURI(f)}", (data) ->
if data
izbran = _.first(data)
- r.reply "#{izbran.title}(#{moment.duration(izbran.duration).humanize()}) #{izbran.permalink_url}#{humanize.numberFormat(izbran.favoritings_count,0)}#{humanize.numberFormat(izbran.playback_count,0)}"
+ r.reply "#{izbran.title}(#{moment.duration(izbran.duration).humanize()}) #{izbran.permalink_url}#{humanize.numberFormat(izbran.likes_count,0)}#{humanize.numberFormat(izbran.playback_count,0)}"
else
r.reply "Ni zadetka"

0 comments on commit cd794ba

Please sign in to comment.