Atom feedparser didn't read enclosures correctly
This commit is contained in:
parent
916a382b37
commit
ff5d382a85
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue