aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-07-18 15:36:50 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-07-18 15:36:50 -0700
commit06e9166ffd29929bb8a4872aed4ef2339753bd51 (patch)
treecb3e3ec240aa2eeb875b3bdd6b2ed62bcaf18ef5 /subsonic-android/src
parent5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae (diff)
downloaddsub-06e9166ffd29929bb8a4872aed4ef2339753bd51.tar.gz
dsub-06e9166ffd29929bb8a4872aed4ef2339753bd51.tar.bz2
dsub-06e9166ffd29929bb8a4872aed4ef2339753bd51.zip
Convert podcast date/path to expected form
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java b/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java
index 14c0682e..585b3057 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java
@@ -70,6 +70,9 @@ public class PodcastEntryParser extends AbstractParser {
if(episode.getDate() == null) {
episode.setDate(get("created"));
}
+ if(episode.getDate() != null && episode.getDate().indexOf("T") != -1) {
+ episode.setDate(episode.getDate().replace("T", " "));
+ }
episode.setStatus(get("status"));
episode.setCoverArt(get("coverArt"));
episode.setSize(getLong("size"));
@@ -81,6 +84,8 @@ public class PodcastEntryParser extends AbstractParser {
episode.setPath(get("path"));
if(episode.getPath() == null) {
episode.setPath(FileUtil.getPodcastPath(context, episode));
+ } else if(episode.getPath().indexOf("Podcasts/") == 0) {
+ episode.setPath(episode.getPath().substring("Podcasts/".length()));
}
if("error".equals(episode.getStatus()) || "skipped".equals(episode.getStatus())) {