From 06e9166ffd29929bb8a4872aed4ef2339753bd51 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 18 Jul 2013 15:36:50 -0700 Subject: Convert podcast date/path to expected form --- .../github/daneren2005/dsub/service/parser/PodcastEntryParser.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'subsonic-android/src') 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())) { -- cgit v1.2.3