aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-07-18 15:31:20 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-07-18 15:31:20 -0700
commit5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae (patch)
treedfa8b5dfaacdeddcc438e9ef8551de6e59e70acd /subsonic-android/src/github
parent94717e221c794738c8b0cedcaa5f595e54c7508b (diff)
downloaddsub-5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae.tar.gz
dsub-5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae.tar.bz2
dsub-5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae.zip
Guess some servers use created instead of publishDate...
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java3
1 files changed, 3 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 b9e4d98a..14c0682e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java
@@ -67,6 +67,9 @@ public class PodcastEntryParser extends AbstractParser {
episode.setArtist(episodes.getName());
episode.setAlbum(get("description"));
episode.setDate(get("publishDate"));
+ if(episode.getDate() == null) {
+ episode.setDate(get("created"));
+ }
episode.setStatus(get("status"));
episode.setCoverArt(get("coverArt"));
episode.setSize(getLong("size"));