Cache clear hooks, track length update fix

This commit is contained in:
magnolia-fan
2011-11-29 03:22:29 +04:00
parent 549e27e0df
commit 94ae2ff3b0
7 changed files with 26 additions and 13 deletions
@@ -59,7 +59,7 @@ class window.VkontakteMusic
data
prepareQuery: (artist, track) ->
artist+" "+this.trim(/[\w\d\s]+/.exec(track)[0]).replace(/\(.*\)/i, '').split('/')[0]
artist+" "+this.trim(/[a-zA-Zа-яА-Я0-9\s-]+/.exec(track)[0]).replace(/\(.*\)/i, '').split('/')[0]
trim: (str) ->
while str.indexOf(' ') isnt -1