diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-12-05 17:07:40 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-12-05 17:07:40 -0800 |
commit | 11c3556836bf92f7fc36a81d62d5bdfa975780d3 (patch) | |
tree | 0d803cfb5af9ef90307e1960e1697ac7d55fb197 /src/github | |
parent | 89f5dfa17584d31986b6a4b1dbc843f408e66dd3 (diff) | |
download | dsub-11c3556836bf92f7fc36a81d62d5bdfa975780d3.tar.gz dsub-11c3556836bf92f7fc36a81d62d5bdfa975780d3.tar.bz2 dsub-11c3556836bf92f7fc36a81d62d5bdfa975780d3.zip |
Starting in 4.9Beta3, directories support year/genre
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java index b0434aca..3c12dfd4 100644 --- a/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java +++ b/src/github/daneren2005/dsub/service/parser/MusicDirectoryEntryParser.java @@ -38,12 +38,12 @@ public class MusicDirectoryEntryParser extends AbstractParser { entry.setCoverArt(get("coverArt")); entry.setArtist(get("artist")); entry.setStarred(get("starred") != null); + entry.setYear(getInteger("year")); + entry.setGenre(get("genre")); if (!entry.isDirectory()) { entry.setAlbum(get("album")); entry.setTrack(getInteger("track")); - entry.setYear(getInteger("year")); - entry.setGenre(get("genre")); entry.setContentType(get("contentType")); entry.setSuffix(get("suffix")); entry.setTranscodedContentType(get("transcodedContentType")); @@ -71,4 +71,4 @@ public class MusicDirectoryEntryParser extends AbstractParser { return entry; } -}
\ No newline at end of file +} |