mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-03 10:47:47 +01:00
feedly can receive messages as per settings
This commit is contained in:
parent
6faeba1185
commit
e41e8eb7eb
@ -30,7 +30,7 @@
|
|||||||
<url type="donation">https://martinrotter.github.io/donate/</url>
|
<url type="donation">https://martinrotter.github.io/donate/</url>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
<release version="3.8.4" date="2021-02-17"/>
|
<release version="3.8.4" date="2021-02-18"/>
|
||||||
</releases>
|
</releases>
|
||||||
<content_rating type="oars-1.0">
|
<content_rating type="oars-1.0">
|
||||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||||
|
@ -133,6 +133,17 @@ QList<Message> FeedlyNetwork::decodeStreamContents(const QByteArray& stream_cont
|
|||||||
message.m_url = entry_obj["canonical"].toObject()["href"].toString();
|
message.m_url = entry_obj["canonical"].toObject()["href"].toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const QJsonValue& enc : entry_obj["enclosure"].toArray()) {
|
||||||
|
const QJsonObject& enc_obj = enc.toObject();
|
||||||
|
const QString& enc_href = enc_obj["href"].toString();
|
||||||
|
|
||||||
|
if (!boolinq::from(message.m_enclosures).any([enc_href](const Enclosure& existing_enclosure) {
|
||||||
|
return existing_enclosure.m_url == enc_href;
|
||||||
|
})) {
|
||||||
|
message.m_enclosures.append(Enclosure(enc_href, enc_obj["type"].toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const QJsonValue& tag : entry_obj["tags"].toArray()) {
|
for (const QJsonValue& tag : entry_obj["tags"].toArray()) {
|
||||||
const QJsonObject& tag_obj = tag.toObject();
|
const QJsonObject& tag_obj = tag.toObject();
|
||||||
const QString& tag_id = tag_obj["id"].toString();
|
const QString& tag_id = tag_obj["id"].toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user