diff options
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java | 5 |
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())) {
|