diff --git a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java index 1fe5ef2f8..597db7491 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java +++ b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java @@ -140,6 +140,12 @@ public class NSAtom extends Namespace { state.getCurrentItem().setDescription( textElement.getProcessedContent()); } + } else if (top.equals(UPDATED)) { + if (second.equals(ENTRY) + && state.getCurrentItem().getPubDate() == null) { + state.getCurrentItem().setPubDate( + SyndDateUtils.parseRFC3339Date(content)); + } } else if (top.equals(PUBLISHED)) { if (second.equals(ENTRY)) { state.getCurrentItem().setPubDate( diff --git a/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java b/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java index 9899423e0..2dc4e890e 100644 --- a/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java +++ b/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java @@ -24,6 +24,7 @@ public class FeedHandlerTest extends AndroidTestCase { private static final String FEEDS_DIR = "testfeeds"; private static final String[] rssUrls = { + "http://bitlove.org/importthis/mp3/feed", "http://bitlove.org/astro/youtube/feed", "http://bitlove.org/channelcast/channelcast/feed", "http://bitlove.org/cccb/chaosradio/feed", @@ -112,7 +113,6 @@ public class FeedHandlerTest extends AndroidTestCase { "http://bitlove.org/ckater/schoeneecken-mp3/feed", "http://bitlove.org/cllassnig/bytegefluester/feed", "http://bitlove.org/cllassnig/nerdtirol/feed", - "http://bitlove.org/cmag/podcast/feed", "http://bitlove.org/cocoaheads/austria/feed", "http://bitlove.org/compod/compod/feed", "http://bitlove.org/consolmedia/consolpodcast/feed", @@ -171,7 +171,6 @@ public class FeedHandlerTest extends AndroidTestCase { "http://bitlove.org/holgi/wrint/feed", "http://bitlove.org/ich-bin-radio/fir/feed", "http://bitlove.org/ich-bin-radio/rsff/feed", - "http://bitlove.org/importthis/mp3/feed", "http://bitlove.org/incerio/podcast/feed", "http://bitlove.org/jagdfunk/jagdfunk/feed", "http://bitlove.org/janlelis/rubykraut/feed", @@ -450,6 +449,9 @@ public class FeedHandlerTest extends AndroidTestCase { } if (item.getPubDate() == null) { Log.e(TAG, "Item has no pubDate"); + if (item.getTitle() != null) { + Log.e(TAG, "Title of invalid item: " + item.getTitle()); + } return false; } }