diff options
Diffstat (limited to 'subsonic-android/src')
-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()); } |