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-11 03:57:31 +0300
commit0ed3fe2585fca1384afd1d7a9a3ec3d79926ade0 (patch)
tree140990ecf5bf3b7f2bc9b26bf5e09b2f4e8646f8
parent7c395a73cee05948507e0244f848add0335434a1 (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
-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"))));
}