Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jangernert/FeedReader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Long <self@brendanlong.com>2019-02-10 20:18:25 +0300
committerBrendan Long <self@brendanlong.com>2019-02-10 20:19:24 +0300
commit193ea1291c6135f5357e6a9a340f323b49defbad (patch)
treee749f8285feab44104ce6ee412af6026457d2d74 /plugins
parent8ee011610cadc9b1c0e3a08539c3132d9f5727c3 (diff)
Use UntypedJson.Object.get_string_member in a few more places
There were a few other cases where TT-RSS was sending us ints and we expected strings. Might fix #752
Diffstat (limited to 'plugins')
-rw-r--r--plugins/backend/ttrss/ttrssAPI.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/backend/ttrss/ttrssAPI.vala b/plugins/backend/ttrss/ttrssAPI.vala
index 11a1da0c..2d9248a8 100644
--- a/plugins/backend/ttrss/ttrssAPI.vala
+++ b/plugins/backend/ttrss/ttrssAPI.vala
@@ -357,10 +357,10 @@ private void getSubCategories(Gee.List<Category> categories, Json.Object categor
for(uint i = 0; i < items_count; i++)
{
var categorie_node = subcategorie.get_object_element(i);
- if(categorie_node.get_string_member("id").has_prefix("CAT:"))
+ string catID = UntypedJson.Object.get_string_member(categorie_node, "id");
+ if(catID.has_prefix("CAT:"))
{
orderID++;
- string catID = categorie_node.get_string_member("id");
string categorieID = catID.slice(4, catID.length);
if(int.parse(categorieID) > 0)
@@ -490,7 +490,7 @@ public void getHeadlines(Gee.List<Article> articles, int skip, int limit, Articl
{
var attachment = attachments.get_object_element(j);
enclosures.add(new Enclosure(
- headline_node.get_string_member("id"),
+ UntypedJson.Object.get_string_member(headline_node, "id"),
attachment.get_string_member("content_url"),
EnclosureType.from_string(attachment.get_string_member("content_type"))));
}
@@ -604,7 +604,7 @@ public Gee.List<Article> getArticles(Gee.List<int> articleIDs)
{
var attachment = attachments.get_object_element(j);
enclosures.add(new Enclosure(
- article_node.get_string_member("id"),
+ UntypedJson.Object.get_string_member(article_node, "id"),
attachment.get_string_member("content_url"),
EnclosureType.from_string(attachment.get_string_member("content_type"))));
}