From e43b7a48b08a6bbcb4e730e80395b3257681b33e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 6 Oct 2020 18:51:33 +0200 Subject: parse categories, add multiple field values support (for categories) Fields with multiple values are separated by '|'. In the future multiple enclosure support might be added. The categories tags are now parsed. This feature is useful for filtering and categorizing. Parsing of nested tags such as has been improved. This code has been refactored. RSS isPermaLink is now handled differently also and will now prefer a permalink with "true" (link) over the ID. In practise multiple in an item does not happen. --- util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index cf250ec..bdd5664 100644 --- a/util.h +++ b/util.h @@ -30,7 +30,8 @@ struct uri { enum { FieldUnixTimestamp = 0, FieldTitle, FieldLink, FieldContent, - FieldContentType, FieldId, FieldAuthor, FieldEnclosure, FieldLast + FieldContentType, FieldId, FieldAuthor, FieldEnclosure, FieldCategory, + FieldLast }; int absuri(char *, size_t, const char *, const char *); -- cgit v1.2.3