Commit Graph
125 Commits
Author SHA1 Message Date
Brent Simmons e25987550a Rename isGravatarAvatar to isGravatar. 2026-10-30 21:20:46 -07:00
Brent Simmons 88104fb412 Pass parsed URL to isGravatarAvatar instead of URL string which then has to be parsed. 2026-10-30 18:19:06 -07:00
Brent Simmons 377531b40c Reject images with tracking names. 2026-10-29 10:06:53 -07:00
Brent Simmons 617598c7aa Treat textarea, title, xmp, noembded as raw text in HTMLScanner. 2026-10-29 09:21:12 -07:00
Brent Simmons c1b8c44c7e Use the largest srcset image over src (which is often a placeholder). 2026-10-29 08:43:10 -07:00
Brent Simmons 92059c4c10 Create HTMLImageAttributeInserter which adds attributes to img tags so we can add a local src for an image where we have a local version. 2026-10-27 13:54:50 -07:00
Brent Simmons 98b440b83a Save multiple thumbnail URLs per article in case one fails or is too small etc. 2026-10-27 11:18:29 -07:00
Brent Simmons 0663332828 Try each image in HTML until one is significant. 2026-10-27 11:14:13 -07:00
Brent Simmons 41d9b754b3 Increase the aspect ratio limit some. 2026-10-26 19:31:52 -07:00
Brent Simmons 098ee21d49 Add HTMLImageParserTests. 2026-10-25 11:45:36 -07:00
Brent Simmons 1f418a17c9 Add HTMLImageParser. 2026-10-25 11:44:45 -07:00
Brent Simmons 0a637e3fc3 Add HTMLImage type. 2026-10-25 11:23:34 -07:00
Brent Simmons 986a8fa04a Edit comment. 2026-10-25 11:23:22 -07:00
Brent Simmons 14d9898943 Add stopParsing function. 2026-10-25 11:21:34 -07:00
Brent Simmons 473a94bb06 Store and display attachments in feed order. 2026-10-24 11:58:06 -07:00
Brent Simmons 17b9a5b543 Use WordPress Gravatar media:content enclosure as author avatar URL instead of as image enclosure. 2026-10-24 11:48:48 -07:00
Brent Simmons d3d52a72ef Parse enclosures and articles images from Reader API accounts. 2026-10-24 10:53:14 -07:00
Brent Simmons 7858ea8b61 Parse and store Feedbin image, thumbnail, and enclosure. 2026-10-23 20:54:40 -07:00
Brent Simmons 96f307911d Add support for thumbnails. 2026-10-23 13:18:44 -07:00
Brent Simmons 405c82260b Add thumbnailURL. 2026-10-23 12:09:43 -07:00
Brent Simmons 876e0a0068 Parse itunes:image as article image. Show thumbnail in article view when there's no other visual enclosures (unless that image is already in the content). 2026-10-23 10:33:22 -07:00
Brent Simmons 77075a1883 Use media:description when no other content or summary is available. 2026-10-23 09:56:56 -07:00
Brent Simmons 9ac6221022 Parse Media RSS in Atom. Share more Media RSS handling between RSS and Atom parsers. 2026-10-22 21:54:15 -07:00
Brent Simmons 4a842f8ef3 Parse Media RSS in RSS feeds. Merge attachments that refer to the same thing, so we get all the available metadata. 2026-10-22 21:49:57 -07:00
Brent Simmons df20c6cc1c Add width, height, and medium properties to ParsedAttachment. Make JSON Feed mime_type optional. 2026-10-22 21:05:06 -07:00
Brent Simmons c70a7ab4a7 Make iOS 18 the minimum target. 2026-10-21 19:05:11 -07:00
Brent Simmons 60bfa4e209 Ignore textinput sections in RSS feeds. (Which we see only with the Slashdot feed, but there may be others of course). Fixes #5459. 2026-10-02 09:56:12 -07:00
Brent Simmons d1eaf76763 Fix HTMLScanner to allow slashes in unquoted attribute values, which fixes feed discovery bugs (among other things). 2026-08-01 18:13:19 -07:00
Brent Simmons 1d54877be2 Support Atom xml:base — resolve relative URLs. Fixes #5088. 2026-07-28 10:10:49 -07:00
Brent Simmons 3a948b7556 Decode ‍ and ‌ entities. 2026-07-04 17:16:10 -07:00
Brent Simmons 8c02fb3ba4 Fix case where a title (or other tag) doesn’t have a prefix but is inside a namespaced section (<s:variant> for instance). Fixes #4422. 2026-05-26 19:45:34 -07:00
Brent Simmons 820dd504f1 Fix SwiftLint issues. 2026-05-22 10:01:54 -07:00
Brent Simmons cd3c6d0173 Simplify and make faster the time zone parser. 2026-04-24 12:54:42 -07:00
Brent Simmons 9972fed89a Simplify nextMonthValue. Edit some comments. 2026-04-24 11:59:12 -07:00
Brent Simmons 1a94463b70 Delete some unneeded comments. 2026-04-24 11:50:29 -07:00
Brent Simmons 450fc850e8 Edit comments. 2026-04-24 11:47:10 -07:00
Brent Simmons 41cab354ea Rename MutableItem to RSSItem. 2026-04-24 10:39:48 -07:00
Brent Simmons 3b9347ce05 Make RSParser depend on RSCore and use a single md5String implementation (in RSCore). Make Swift Testing work with RSCore. 2026-04-24 10:23:34 -07:00
Brent Simmons 598bec6b3e Share a MutableItem feed item object between RSS and Atom parsers. 2026-04-24 09:54:14 -07:00
Brent Simmons 9402655bce Use single shared unique ID calculator for Atom and RSS feeds. 2026-04-24 09:40:49 -07:00
Brent Simmons bc836fe901 Rename AtomAuthor.build to AtomAuthor.toParsedAuthor. 2026-04-24 09:02:30 -07:00
Brent Simmons d6eb8df7d0 Parse Atom summary. 2026-04-24 08:56:21 -07:00
Brent Simmons 9bfd09f7b5 Dropped the Mutable part of some private names. 2026-04-24 08:36:21 -07:00
Brent Simmons 8a4b30012e Pick up favicon from Atom feed, when specified. Edit some comments. 2026-04-24 08:28:13 -07:00
Brent Simmons 2a75872cba Update comment. 2026-04-24 08:18:35 -07:00
Brent Simmons dfaa1d9c6e Add performance tests for the new String.decodingHTMLEntities. 2026-04-22 09:52:40 -07:00
Brent Simmons 15ae566e2a Use withContiguousStorageIfAvailable to avoid Array(utf8) when possible. Performance enhancement when the string has no & characters. (Common for titles, for instance.) 2026-04-22 09:52:07 -07:00
Brent Simmons 6fa553132b Remove some metadata that shouldn’t be checked in. 2026-04-21 17:28:23 -07:00
Brent Simmons 8c7bb12928 Remove unneeded code. 2026-04-20 12:18:25 -07:00
Brent Simmons fa79a03fa6 Make pushImage return value discardable. 2026-04-20 12:16:32 -07:00