aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-19 21:14:21 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-19 21:14:21 -0700
commit69e5a58dae101bdadf5eaa791ca02621767d430a (patch)
treefc170bfcc823c56c0883d80121ee81b1c1afae65
parent90da556bb175e31cf829911ad14bbc793cb1a216 (diff)
downloaddsub-69e5a58dae101bdadf5eaa791ca02621767d430a.tar.gz
dsub-69e5a58dae101bdadf5eaa791ca02621767d430a.tar.bz2
dsub-69e5a58dae101bdadf5eaa791ca02621767d430a.zip
parseOfflineID for case when album == artist, know that it is the album they are looking for
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/Util.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Util.java b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
index 98b9fc42..a90c329a 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
@@ -384,7 +384,11 @@ public final class Util {
String artist = "artist:\"" + details[details.length - 2] + "\"";
String simpleArtist = "artist:\"" + title + "\"";
title = "album:\"" + title + "\"";
- name = "(" + artist + " AND " + title + ")" + " OR " + simpleArtist;
+ if(details[details.length - 1].equals(details[details.length - 2])) {
+ name = title;
+ } else {
+ name = "(" + artist + " AND " + title + ")" + " OR " + simpleArtist;
+ }
} else {
name = "artist:\"" + title + "\"";
}