mirror of https://github.com/KDE/kasts.git
Initial attempt at parsing extra itunes tags
This commit is contained in:
parent
7e05231b63
commit
8b78de960b
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue