From 5108fc35b8537fbd0d0ea4da8abb7f40688ad7ae Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 18 Jul 2013 15:31:20 -0700 Subject: Guess some servers use created instead of publishDate... --- .../src/github/daneren2005/dsub/service/parser/PodcastEntryParser.java | 3 +++ 1 file changed, 3 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 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")); -- cgit v1.2.3