Initial attempt at parsing extra itunes tags

This commit is contained in:
Bart De Vries 2021-04-03 22:52:46 +02:00
parent 7e05231b63
commit 8b78de960b
2 changed files with 5 additions and 1 deletions

View File

@ -195,7 +195,7 @@ void DataManager::removeFeed(const int &index)
query.bindValue(QStringLiteral(":url"), feedurl);
Database::instance().execute(query);
Q_EMIT(feedRemoved(index));
Q_EMIT feedRemoved(index);
}
void DataManager::addFeed(const QString &url)

View File

@ -13,6 +13,8 @@
#include <QNetworkReply>
#include <QStandardPaths>
#include <QTextDocumentFragment>
#include <QDomElement>
#include <QMultiMap>
#include <Syndication/Syndication>
@ -133,6 +135,8 @@ void Fetcher::processEntry(Syndication::ItemPtr entry, const QString &url)
for (const auto &enclosure : entry->enclosures()) {
processEnclosure(enclosure, entry, url);
}
QMultiMap<QString, QDomElement> otherItems = entry->additionalProperties();
qDebug() << "other items" << otherItems.value(QStringLiteral("http://www.itunes.com/dtds/podcast-1.0.dtdimage")).attribute(QStringLiteral("href"));
Q_EMIT entryAdded(url, entry->id());
}