From ff5d382a8545d76e311d5372a8cc5babc1492d7f Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Wed, 26 Sep 2012 19:58:56 +0200 Subject: [PATCH] Atom feedparser didn't read enclosures correctly --- .../danoeh/antennapod/syndication/namespace/atom/NSAtom.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java index 1b1ed8730..f9963133b 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java +++ b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java @@ -72,10 +72,9 @@ public class NSAtom extends Namespace { if (strSize != null) size = Long.parseLong(strSize); String type = attributes.getValue(LINK_TYPE); - String download_url = attributes - .getValue(LINK_REL_ENCLOSURE); + state.getCurrentItem().setMedia( - new FeedMedia(state.getCurrentItem(), download_url, + new FeedMedia(state.getCurrentItem(), href, size, type)); } else if (rel.equals(LINK_REL_PAYMENT)) { state.getCurrentItem().setPaymentLink(href);