mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
some feeds don't use a globally unique id as a guid (sigh)
This commit is contained in:
@@ -93,7 +93,9 @@ public class FeedUpdateService {
|
||||
private FeedEntry findEntry(List<FeedEntry> existingEntries, FeedEntry entry) {
|
||||
FeedEntry foundEntry = null;
|
||||
for (FeedEntry existingEntry : existingEntries) {
|
||||
if (StringUtils.equals(entry.getGuid(), existingEntry.getGuid())) {
|
||||
if (StringUtils.equals(entry.getGuid(), existingEntry.getGuid())
|
||||
&& StringUtils.equals(entry.getUrl(),
|
||||
existingEntry.getUrl())) {
|
||||
foundEntry = existingEntry;
|
||||
break;
|
||||
}
|
||||
@@ -108,7 +110,6 @@ public class FeedUpdateService {
|
||||
}
|
||||
List<FeedEntry> existingEntries = guids.isEmpty() ? new ArrayList<FeedEntry>()
|
||||
: feedEntryDAO.findByGuids(guids);
|
||||
|
||||
return existingEntries;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user