mirror of https://github.com/KDE/kasts.git
Do not process "other" fields before checking if entry already exists
This commit is contained in:
parent
82112a0c47
commit
cb9000faa5
|
@ -221,14 +221,6 @@ bool UpdateFeedJob::processEntry(Syndication::ItemPtr entry)
|
||||||
{
|
{
|
||||||
qCDebug(kastsFetcher) << "Processing" << entry->title();
|
qCDebug(kastsFetcher) << "Processing" << entry->title();
|
||||||
|
|
||||||
// Retrieve "other" fields; this will include the "itunes" tags
|
|
||||||
QMultiMap<QString, QDomElement> otherItems = entry->additionalProperties();
|
|
||||||
|
|
||||||
for (QString key : otherItems.uniqueKeys()) {
|
|
||||||
qCDebug(kastsFetcher) << "other elements";
|
|
||||||
qCDebug(kastsFetcher) << key << otherItems.value(key).tagName();
|
|
||||||
}
|
|
||||||
|
|
||||||
// check against existing entries in database
|
// check against existing entries in database
|
||||||
if (m_existingEntryIds.contains(entry->id()))
|
if (m_existingEntryIds.contains(entry->id()))
|
||||||
return false;
|
return false;
|
||||||
|
@ -239,6 +231,14 @@ bool UpdateFeedJob::processEntry(Syndication::ItemPtr entry)
|
||||||
return false; // entry already exists
|
return false; // entry already exists
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Retrieve "other" fields; this will include the "itunes" tags
|
||||||
|
QMultiMap<QString, QDomElement> otherItems = entry->additionalProperties();
|
||||||
|
|
||||||
|
for (QString key : otherItems.uniqueKeys()) {
|
||||||
|
qCDebug(kastsFetcher) << "other elements";
|
||||||
|
qCDebug(kastsFetcher) << key << otherItems.value(key).tagName();
|
||||||
|
}
|
||||||
|
|
||||||
EntryDetails entryDetails;
|
EntryDetails entryDetails;
|
||||||
entryDetails.feed = m_url;
|
entryDetails.feed = m_url;
|
||||||
entryDetails.id = entry->id();
|
entryDetails.id = entry->id();
|
||||||
|
|
Loading…
Reference in New Issue