jvoisin
c4a2afb7b7
perf: cache the format of feeds
...
Detecting the format of a feed accounts for up to 30% of the time spent in
`parser.ParseFeed`. Cache the value once detected, as it'll never change.
2025-03-25 21:23:30 +01:00
Frédéric Guillot
e342a4f143
fix: address minor issues detected by Go linters
2025-03-24 20:48:46 -07:00
Frédéric Guillot
7f54b27079
fix(rss): handle item title with CDATA content correctly
...
Fix regression introduced in commit a3ce03cc
2025-02-15 14:51:27 -08:00
Frédéric Guillot
a3ce03cc9d
feat(rss): add workaround for RSS item title with HTML content
2025-02-14 21:21:49 -08:00
Frédéric Guillot
191f3a7ad7
feat(rss): calculate hash based on item title/content for feeds without GUID and link
2024-10-18 18:37:38 -07:00
jvoisin
f109e3207c
reader/rss: don't add empty tags to RSS items
...
This commit adds a bunch of checks to prevent reader/rss from adding empty tags
to rss items, as well as some minor refactors like nested conditions and loops
unrolling.
2024-03-24 19:46:56 -07:00
Frédéric Guillot
ad1d349a0c
rss: use Channel tags only if there is no Item tags
2024-03-23 13:46:48 -07:00
Frédéric Guillot
08640b27d5
Ensure enclosure URLs are always absolute
2024-03-19 21:57:46 -07:00
Frédéric Guillot
fa9697b972
Remove trailing space in SiteURL and FeedURL
2024-03-18 17:51:06 -07:00
Frédéric Guillot
4834e934f2
Remove some duplicated code in RSS parser
2024-03-15 18:40:06 -07:00
Frédéric Guillot
dd4fb660c1
Refactor Atom parser to use an adapter
2024-03-15 17:27:16 -07:00
Frédéric Guillot
5948786b15
Add support for RSS <media:category> element
2024-03-13 21:35:39 -07:00
Frédéric Guillot
648b9a8f6f
Refactor RSS Parser to use an adapter
2024-03-13 21:25:09 -07:00