]> jfr.im git - erebus.git/commit
Various fixed to spotify.py
authorJohn Runyon <redacted>
Sat, 25 Jan 2014 15:29:33 +0000 (09:29 -0600)
committerJohn Runyon <redacted>
Sat, 25 Jan 2014 15:29:33 +0000 (09:29 -0600)
commit822b8906df33c3c6091c4663ff4c909fad5746be
tree0a8dd968b50ddf3a20a30ed96c31fa53dc7e5fb3
parent8e5dac09566885bdca779a62b336c84405611c7f
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