aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-06-28 11:07:58 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-06-28 11:07:58 -0700
commit20539ab5b062993cb9c31ac4b4650aff1901db69 (patch)
tree288c231213cc84f0afb4cb3e64ad0e053c16496b
parenta0e5b6d20d033c31592a66cb0f36741785e664be (diff)
downloaddsub-20539ab5b062993cb9c31ac4b4650aff1901db69.tar.gz
dsub-20539ab5b062993cb9c31ac4b4650aff1901db69.tar.bz2
dsub-20539ab5b062993cb9c31ac4b4650aff1901db69.zip
Fix Articles To Ignore to check if first WORD, not first letters match
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java4
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);
}