diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-05-21 21:28:31 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-05-21 21:28:31 -0700 |
commit | 83f8d809ec47c70417d6ffdfd4844d6e4b2a84ea (patch) | |
tree | 0770ffab5dcec7de7b62e9cefd512d081404b40f | |
parent | f5719a831f5e2db1711e35a398cae1254a3eebfb (diff) | |
download | dsub-83f8d809ec47c70417d6ffdfd4844d6e4b2a84ea.tar.gz dsub-83f8d809ec47c70417d6ffdfd4844d6e4b2a84ea.tar.bz2 dsub-83f8d809ec47c70417d6ffdfd4844d6e4b2a84ea.zip |
Added discNumber parsing
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/domain/MusicDirectory.java | 9 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/domain/MusicDirectory.java b/subsonic-android/src/github/daneren2005/dsub/domain/MusicDirectory.java index b89417c0..185fc17f 100644 --- a/subsonic-android/src/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/subsonic-android/src/github/daneren2005/dsub/domain/MusicDirectory.java @@ -80,6 +80,7 @@ public class MusicDirectory { private Integer bitRate; private String path; private boolean video; + private Integer discNumber; private boolean starred; private int closeness; @@ -234,6 +235,14 @@ public class MusicDirectory { public void setVideo(boolean video) { this.video = video; } + + public Integer getDiscNumber() { + return discNumber; + } + + public void setDiscNumber(Integer discNumber) { + this.discNumber = discNumber; + } public boolean isStarred() { return starred; diff --git a/subsonic-android/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java b/subsonic-android/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java index 818c8235..b80e71ca 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java @@ -25,7 +25,6 @@ import github.daneren2005.dsub.domain.MusicDirectory; * @author Sindre Mehus */ public class MusicDirectoryEntryParser extends AbstractParser { - public MusicDirectoryEntryParser(Context context) { super(context); } @@ -54,6 +53,7 @@ public class MusicDirectoryEntryParser extends AbstractParser { entry.setBitRate(getInteger("bitRate")); entry.setPath(get("path")); entry.setVideo(getBoolean("isVideo")); + entry.setDiscNumber(getInteger("discNumber")); } else if(!"".equals(artist)) { entry.setPath(artist + "/" + entry.getTitle()); } |