parent
2afcb580bf
commit
9d30e697e6
|
@ -107,9 +107,9 @@ public class FeedItem extends FeedComponent implements
|
|||
* of the entry.
|
||||
*/
|
||||
public String getIdentifyingValue() {
|
||||
if (itemIdentifier != null) {
|
||||
if (itemIdentifier != null && !itemIdentifier.isEmpty()) {
|
||||
return itemIdentifier;
|
||||
} else if (title != null) {
|
||||
} else if (title != null && !title.isEmpty()) {
|
||||
return title;
|
||||
} else {
|
||||
return link;
|
||||
|
|
|
@ -101,7 +101,10 @@ public class NSRSS20 extends Namespace {
|
|||
}
|
||||
|
||||
if (top.equals(GUID) && second.equals(ITEM)) {
|
||||
// some feed creators include an empty or non-standard guid-element in their feed, which should be ignored
|
||||
if (!content.isEmpty()) {
|
||||
state.getCurrentItem().setItemIdentifier(content);
|
||||
}
|
||||
} else if (top.equals(TITLE)) {
|
||||
if (second.equals(ITEM)) {
|
||||
state.getCurrentItem().setTitle(content);
|
||||
|
|
Loading…
Reference in New Issue