diff --git a/src/de/danoeh/antennapod/feed/Feed.java b/src/de/danoeh/antennapod/feed/Feed.java index 9b68faab1..76f6a6fa5 100644 --- a/src/de/danoeh/antennapod/feed/Feed.java +++ b/src/de/danoeh/antennapod/feed/Feed.java @@ -122,14 +122,14 @@ public class Feed extends FeedFile { /** * Returns the value that uniquely identifies this Feed. If the * feedIdentifier attribute is not null, it will be returned. Else it will - * try to return the link. If the link is not given, it will use the title - * of the entry. + * try to return the download URL. If the download URL is not given, it will use the title + * of the feed. * */ public String getIdentifyingValue() { if (feedIdentifier != null) { return feedIdentifier; - } else if (link != null) { - return link; + } else if (download_url != null) { + return download_url; } else { return title; } diff --git a/src/de/danoeh/antennapod/feed/FeedItem.java b/src/de/danoeh/antennapod/feed/FeedItem.java index 39a40e799..a8bb0dbb4 100644 --- a/src/de/danoeh/antennapod/feed/FeedItem.java +++ b/src/de/danoeh/antennapod/feed/FeedItem.java @@ -63,16 +63,16 @@ public class FeedItem extends FeedComponent { /** Returns the value that uniquely identifies this FeedItem. * If the itemIdentifier attribute is not null, it will be returned. - * Else it will try to return the link. If the link is not given, it will - * use the title of the entry. + * Else it will try to return the title. If the title is not given, it will + * use the link of the entry. * */ public String getIdentifyingValue() { if (itemIdentifier != null) { return itemIdentifier; - } else if (link != null) { - return link; - } else { + } else if (title != null) { return title; + } else { + return link; } }