Atom feedparser didn't read enclosures correctly

This commit is contained in:
daniel oeh 2012-09-26 19:58:56 +02:00
parent 916a382b37
commit ff5d382a85
1 changed files with 2 additions and 3 deletions

View File

@ -72,10 +72,9 @@ public class NSAtom extends Namespace {
if (strSize != null) if (strSize != null)
size = Long.parseLong(strSize); size = Long.parseLong(strSize);
String type = attributes.getValue(LINK_TYPE); String type = attributes.getValue(LINK_TYPE);
String download_url = attributes
.getValue(LINK_REL_ENCLOSURE);
state.getCurrentItem().setMedia( state.getCurrentItem().setMedia(
new FeedMedia(state.getCurrentItem(), download_url, new FeedMedia(state.getCurrentItem(), href,
size, type)); size, type));
} else if (rel.equals(LINK_REL_PAYMENT)) { } else if (rel.equals(LINK_REL_PAYMENT)) {
state.getCurrentItem().setPaymentLink(href); state.getCurrentItem().setPaymentLink(href);