Commit Graph
11319 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 1b6b3b072f Skip icon update checks when network doesn’t allow downloads or retry wait is running. 2026-10-31 11:36:40 -07:00
Brent Simmons a7a1c43e7b Combine htmlThumbnailURLs and articleIDsWithNoHTMLThumbnail into single dictionary. Empty array means HTML has no thumbnail. 2026-10-31 11:10:26 -07:00
Brent Simmons 6f35025569 Remove code that has been replaced by findThumbnailURLs. 2026-10-31 11:08:47 -07:00
Brent Simmons 1302f57d3e Use findThumbnailURLs. 2026-10-31 11:05:35 -07:00
Brent Simmons 70b1eb70f0 Add findThumbnailURLs which loads thumbnail URLs and parses the reset. Simplifies things for callers. 2026-10-31 11:01:33 -07:00
Brent Simmons c0941f6db0 Load saved thumbnail URLs in small mode on Mac so titles don’t rewrap after timeline opens. 2026-10-31 10:58:18 -07:00
Brent Simmons 880b3e213a Decode large thumbnails to displayed height, which makes them smaller, which means more can fit in the image cache. 2026-10-31 10:56:51 -07:00
Brent Simmons c9a3c32586 Skip image URLs that returned something other than an image. 2026-10-31 10:52:22 -07:00
Brent Simmons defd3db2b2 Fall back to home page icon when feed icon URL returns something other than an image. Fixes #5376. 2026-10-31 10:50:20 -07:00
Brent Simmons 3735f095fc Stop retrying image URLs that return something other than an image until network status changes, so a bad URL isn’t retried every session. 2026-10-31 10:47:35 -07:00
Brent Simmons d404b3b8da Update cells about to be displayed, so thumbnail that arrives after the cell was prepared doesn’t leave the row gray. 2026-10-31 10:43:14 -07:00
Brent Simmons 2aeb9e3d8b Empty chosen thumbnail URLs cache on low memory. 2026-10-31 10:40:19 -07:00
Brent Simmons eb22462a06 Store articles image fields rather than entire articles in ArticleThumbnailFinder. 2026-10-31 10:38:20 -07:00
Brent Simmons c655a0d659 Check retry waits and network status when queued image download’s turn is up, so those requests don’t go to a host that just asked for a wait. 2026-10-31 10:32:29 -07:00
Brent Simmons ec803f9f76 Start hosts’s retry wait for 429, 503, or no response, so that other failures don’t apply to the host. 2026-10-31 10:28:15 -07:00
Brent Simmons 103cfd2a08 Double image retry wait after previous wait ends, so a bunch of failures in a row doesn’t double it to the max in a few seconds. 2026-10-31 10:24:51 -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 65962b8cf4 Move row to next thumbnail source when image URL returns something that isn’t an actual image. 2026-10-30 22:28:38 -07:00
Brent Simmons 6d6b3f3123 Test that the largest frame of an image file is decoded. 2026-10-30 22:09:53 -07:00
Brent Simmons 2c56df2373 Test that a failed provided image falls back to a thumbnail found in HTML. 2026-10-30 22:07:58 -07:00
Brent Simmons 521f00be18 Test that an image without validators waits longest between checks. 2026-10-30 22:05:49 -07:00
Brent Simmons 73983d1707 Add test for saving images and checking thumbnail suitability. 2026-10-30 22:04:00 -07:00
Brent Simmons 3a4bac109e Add test for counting HTTP status codes as transient. 2026-10-30 22:01:10 -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 b6fde3038d Wait for tasks to be queued in ThumbnailTaskQueueTests instead of relying on Task.yield. 2026-10-30 21:55:10 -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 1759eebd55 Remove now-unused three-day image cache flush. 2026-10-30 21:36:01 -07:00
Brent Simmons 8b6328deed Remove superfluous purgeImageCachesForResizingIfNeeded. 2026-10-30 21:34:01 -07:00
Brent Simmons 3b368771be Remove unused JPEG format support. 2026-10-30 21:31:55 -07:00
Brent Simmons 8239e7af20 Record decode failures but not download failures (since DownloadedImageCache does that). 2026-10-30 21:30:24 -07:00
Brent Simmons a7b3ffb815 Observe timelineThumbnailsDisplayDidChange notification. 2026-10-30 21:27:16 -07:00
Brent Simmons e3b5cd5d9e Use Use TimelineThumbnailsDisplay.thumbnailMode. 2026-10-30 21:25:04 -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 21543b9ee0 Filter provided thumbnail URLs only, since URLs found in HTML were previously filtered. 2026-10-30 18:15:27 -07:00
Brent Simmons 63b3078231 Figure out which images to remove in background. 2026-10-30 18:09:00 -07:00
Brent Simmons 187e01ef63 Use rawValue. 2026-10-30 18:06:26 -07:00
Brent Simmons 8119738499 Use UICollectionViewDataSourcePrefetching to prefetch iOS timeline thumbnails. 2026-10-30 18:05:16 -07:00
Brent Simmons 559ac33a17 Prefetch thumbnails in the scrolling direction in the timeline. 2026-10-30 17:55:13 -07:00
Brent Simmons 3da931b856 Find HTML images before updating rows when a timeline thumbnail fails. 2026-10-30 17:52:02 -07:00
Brent Simmons 262c8f16dc Decode thumbnail images a few at a time. 2026-10-30 17:46:21 -07:00
Brent Simmons c9b4782433 Rename DownloadLimiter to ThumbnailTaskQueue now that it’s about more than just downloading. 2026-10-30 17:38:34 -07:00
Brent Simmons 6e9996b182 Set the thumbnail on existing cell data. 2026-10-30 17:31:37 -07:00
Brent Simmons f19b70fda5 Update visible cells directly when a thumbnail arrives. 2026-10-30 17:26:17 -07:00
Brent Simmons 6489ad278d Reconfigure rather than reload cells in iOS timeline. 2026-10-30 17:24:34 -07:00
Brent Simmons d823ef56e9 Reload all rows in iOS timeline when thumbnail display changes. 2026-10-30 17:22:56 -07:00