Partially solve adding author for feed

This commit is contained in:
Bart De Vries 2021-04-08 00:03:08 +02:00
parent ed7f75de13
commit e092354696
2 changed files with 3 additions and 0 deletions

View File

@ -240,6 +240,7 @@ void DataManager::addFeed(const QString &url)
Q_EMIT feedAdded(urlFromInput.toString());
Fetcher::instance().fetch(urlFromInput.toString());
// TODO: fetch authors?
}
Entry* DataManager::getQueueEntry(int const &index) const

View File

@ -104,8 +104,10 @@ void Fetcher::processFeed(Syndication::FeedPtr feed, const QString &url)
authorname = otherItems.value(QStringLiteral("http://www.itunes.com/dtds/podcast-1.0.dtdauthor")).text();
qDebug() << "authorname" << authorname;
}
if (!authorname.isEmpty()) processAuthor(url, QLatin1String(""), authorname, QLatin1String(""), authoremail);
}
QString image = feed->image()->url();
// If there is no regular image tag, then try the itunes tags
if (image.isEmpty()) {