aboutsummaryrefslogtreecommitdiff
path: root/reader/json/json.go
diff options
context:
space:
mode:
authorGravatar privatmamtora <privat.mamtora@gmail.com> 2023-02-25 04:52:45 +0000
committerGravatar GitHub <noreply@github.com> 2023-02-24 20:52:45 -0800
commit8f9ccc6540be9d637b812985936f064bada8fcf3 (patch)
tree7d098af52e1f8946c1cd26ee214307b276b5f273 /reader/json/json.go
parentff8d68c151645de62d48fba62d2f591eab8f7383 (diff)
downloadv2-8f9ccc6540be9d637b812985936f064bada8fcf3.tar.gz
v2-8f9ccc6540be9d637b812985936f064bada8fcf3.tar.zst
v2-8f9ccc6540be9d637b812985936f064bada8fcf3.zip
Parse `<category>` from Feeds (RSS, Atom and JSON)
Diffstat (limited to 'reader/json/json.go')
-rw-r--r--reader/json/json.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/reader/json/json.go b/reader/json/json.go
index 589d7cb0..759b10c7 100644
--- a/reader/json/json.go
+++ b/reader/json/json.go
@@ -43,6 +43,7 @@ type jsonItem struct {
Authors []jsonAuthor `json:"authors"`
Author jsonAuthor `json:"author"`
Attachments []jsonAttachment `json:"attachments"`
+ Tags []string `json:"tags"`
}
type jsonAttachment struct {
@@ -181,6 +182,7 @@ func (j *jsonItem) Transform() *model.Entry {
entry.Content = j.GetContent()
entry.Title = strings.TrimSpace(j.GetTitle())
entry.Enclosures = j.GetEnclosures()
+ entry.Tags = j.Tags
return entry
}