diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-06-28 11:07:58 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-06-28 11:07:58 -0700 |
commit | 20539ab5b062993cb9c31ac4b4650aff1901db69 (patch) | |
tree | 288c231213cc84f0afb4cb3e64ad0e053c16496b /subsonic-android/src/github/daneren2005 | |
parent | a0e5b6d20d033c31592a66cb0f36741785e664be (diff) | |
download | dsub-20539ab5b062993cb9c31ac4b4650aff1901db69.tar.gz dsub-20539ab5b062993cb9c31ac4b4650aff1901db69.tar.bz2 dsub-20539ab5b062993cb9c31ac4b4650aff1901db69.zip |
Fix Articles To Ignore to check if first WORD, not first letters match
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java index ea45b626..395ad6b6 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java @@ -97,11 +97,11 @@ public class OfflineMusicService extends RESTMusicService { } for(String article: ignoredArticles) { - int index = lhs.indexOf(article.toLowerCase()); + int index = lhs.indexOf(article.toLowerCase() + " "); if(index == 0) { lhs = lhs.substring(article.length() + 1); } - index = rhs.indexOf(article.toLowerCase()); + index = rhs.indexOf(article.toLowerCase() + " "); if(index == 0) { rhs = rhs.substring(article.length() + 1); } |