Commit Graph
132 Commits
Author SHA1 Message Date
Brent Simmons fcd5d295bd Choose narrowest srcset candidate at least 1200 px wide instead of the largest candidate, to cut down on bandwidth use. 2026-10-31 11:39:53 -07:00
Brent Simmons aa900631ae Find thumbnails in data-lazy-srcset, data-srcset, and data-original. 2026-10-30 22:30:13 -07:00
Brent Simmons 25e94de5c5 Test that relative image URL is skipped when baseURL is nil. 2026-10-30 21:56:30 -07:00
Brent Simmons ff8c16536a Stop allocating an array. 2026-10-30 21:52:41 -07:00
Brent Simmons dcc94fa185 Check for data: URLs without copying the entire value (which could be huge). 2026-10-30 21:43:12 -07:00
Brent Simmons 6d5d3c27a1 Pass HTML and URL to HTMLImageParser. 2026-10-30 21:41:57 -07:00
Brent Simmons 6a21487b00 Use just one tag name comparison function. 2026-10-30 21:39:48 -07:00
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