aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-18 20:11:07 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-18 20:11:07 -0700
commitbb6d5c3ef4bd46f2a9006615ad201a756033da5a (patch)
tree1c50bf4d9781831e44d4bbb0a19af372eaab4cf4 /src/github
parent52d2ae6ce8d973b266694536397fb21ae32f09b4 (diff)
downloaddsub-bb6d5c3ef4bd46f2a9006615ad201a756033da5a.tar.gz
dsub-bb6d5c3ef4bd46f2a9006615ad201a756033da5a.tar.bz2
dsub-bb6d5c3ef4bd46f2a9006615ad201a756033da5a.zip
Only clear out track when bookmark is for type "podcast"
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/parser/BookmarkParser.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/parser/BookmarkParser.java b/src/github/daneren2005/dsub/service/parser/BookmarkParser.java
index 2677d845..332172a3 100644
--- a/src/github/daneren2005/dsub/service/parser/BookmarkParser.java
+++ b/src/github/daneren2005/dsub/service/parser/BookmarkParser.java
@@ -58,6 +58,10 @@ public class BookmarkParser extends MusicDirectoryEntryParser {
bookmark.setUsername(get("username"));
} else if ("entry".equals(name)) {
MusicDirectory.Entry entry = parseEntry(null);
+ // Work around for bookmarks showing entry with a track when podcast listings don't
+ if("podcast".equals(get("type"))) {
+ entry.setTrack(null);
+ }
entry.setBookmark(bookmark);
bookmarks.add(entry);
} else if ("error".equals(name)) {