]> jfr.im git - erebus.git/commit
Various fixed to spotify.py
authorzonidjan <redacted>
Sat, 25 Jan 2014 15:29:33 +0000 (09:29 -0600)
committerzonidjan <redacted>
Sat, 25 Jan 2014 15:29:33 +0000 (09:29 -0600)
commitc8f91e30dcd16dcb1e08557642de7067e1f4373d
tree0a8dd968b50ddf3a20a30ed96c31fa53dc7e5fb3
parent877cd61d6b2ec81fce347ffc0c13b306e2605394
Various fixed to spotify.py

- Use str.split(None) not str.split(' ')
(Collapses multiple whitespace, splits on all whitespace instead of only <SP>)

- Don't test lines against regex unless the line has spotify in it
(`str in str` is much faster than doing multiple regex)
modules/spotify.py