Tags: mmcdole/gofeed
Tags
Atom: use correct xml:base for decoded elements (#222) * Atom: use correct xml:base for decoded elements In order to keep tracking xml:base correctly, the goxpp's `DecodeElement` pops the BaseStack if the start element added a base (if any). That means the atom parser needs keep track of the base *before* calling `DecodeElement` to use for resolving relative URLs within the decoded element. Without this fix, elements with xml:base attributes will be erroneously resolved with the parent xml:base. * Depend on updated goxpp version without xml:base bug * Resolve xml:base URLs without switching out the BaseStack This provides an equivalent fix that doesn't do any inelegant swapping out of the BaseStack. It also doesn't change `goxpp`'s public API by essentially copying `XmlBaseResolveUrl` to `gofeed`.
Make Parser thread-safe (use new goxpp's base:xml state) (#202) * Add a test to detect race conditions with Parser * Make Parser thread-safe (use new goxpp's base:xml state) This changeset implements xml:base resolution based on state maintained by the goxxp parser instead of using a shared urlStack. This allows Parser to be safely used concurrently. Depends on: mmcdole/goxpp#9 To test: `go test -race` * Depend on goxpp v1.1.0 Required for new thread-safe xml:base handling. * Fix ResolveHTML I had changed the name of UrlStack to BaseStack in the goxxp implementation.
Force published field (#147) * Force published field When an atom item only have updated field, use it to fill published. - Less function is using published field, it has to always been populated. - Simplify code when using both RSS and Atom feeds. This fix #146 * Rename updated to published following @Necoro comment
Follow up to #150: Added support for JSON feed (#154) * Added the structure for JSON Feed * Updated package name of json and added parser and test wrapper * Added tests for sample json feed parser * Added detector for feed type json * Removed unwated dependencies * Added parser and empty translator for json feeds * Added translator functions for json feed * Added test for json translator * Added tests for content text and banner image * Added tests for invalid feed and string output * Added tests for json in parser * Updated README * Fixed REAME formatting * check for xml first * update dependencies Co-authored-by: Sudhanshu Raheja <[email protected]>