Commit Graph
11295 Commits
Author SHA1 Message Date
Brent Simmons 264911cabb Add jitter to check interval so they don’t clump (and are therefore kinder to servers). 2026-10-29 09:34:38 -07:00
Brent Simmons edd83c59d0 Wait before requesting anything more from a host after a transient failure. Honor Retry-After in seconds. 2026-10-29 09:31:54 -07:00
Brent Simmons b13d2f9d5d Treat 408 and 429 as transient so they’re retried appropriately instead of waiting five days. 2026-10-29 09:27:58 -07:00
Brent Simmons 25404680ba Add delay before re-requesting an image after transient failure. Delay starts with one minute and doubles up to max one hour delay. 2026-10-29 09:25:55 -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 c699ed91e4 Check AuthorAvatarDownloader cache first so a replaced avatar shows. 2026-10-29 09:12:16 -07:00
Brent Simmons 56764611d3 Replace cached favicons when server replaces image. 2026-10-29 09:10:16 -07:00
Brent Simmons 3ada527dda Replace cached feed icons and author avatars when server replaces the image. 2026-10-29 09:08:58 -07:00
Brent Simmons 93a011fb5c Make icon again when server replaces an image. 2026-10-29 09:05:42 -07:00
Brent Simmons fc2e1eb53d Post DownloadedImageDidChange notification when check with server results in a new image. 2026-10-29 08:59:45 -07:00
Brent Simmons 9964dab069 Avoid coalescing conditional GETs in Downloader. 2026-10-29 08:56:16 -07:00
Brent Simmons 1feafcf4f1 Prevent images being read or being downloaded from being removed by a removal pass. 2026-10-29 08:51:29 -07:00
Brent Simmons e08a815626 Write atomically. 2026-10-29 08:47:36 -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 b06fcfdc63 Get the largest frame. 2026-10-28 13:30:47 -07:00
Brent Simmons 7a561ac992 Make largestFrame public. 2026-10-28 13:30:03 -07:00
Brent Simmons 3113bc08fe Recompute large thumbnail height in all cases, so we have it. 2026-10-28 11:58:41 -07:00
Brent Simmons 01369a21d3 Try downloading thumbnails again when networking comes back. 2026-10-28 11:49:34 -07:00
Brent Simmons c6cf4e704c Check if connectivity is good before downloading images. 2026-10-28 11:48:20 -07:00
Brent Simmons 535652ae3b Post NetworkMonitor notification when connectivity changes. 2026-10-28 11:43:20 -07:00
Brent Simmons dc2bb43fa7 Raise cached article limit in ArticleThumbnailFinder so the cache doesn’t get emptied on super-large timelines as often. 2026-10-28 11:35:01 -07:00
Brent Simmons 70cbd39834 Use the proper baseURL in the thumbnail finder. 2026-10-28 11:30:24 -07:00
Brent Simmons 3cff328792 Look for images in HTML when provided thumbnail fails or is too small. 2026-10-28 11:22:00 -07:00
Brent Simmons 14f570bbf1 Start a waiting image download immediately when article view needs the image. 2026-10-28 11:13:02 -07:00
Brent Simmons 48cc714ce1 Make sure selected HTML doesn’t have nnwArticleImage URLs, so it can be copied and pasted elsewhere and still work. 2026-10-28 10:16:16 -07:00
Brent Simmons f5b5f28ff2 Add routesThumbnailImages so that only webviews get the local image cache URL scheme. 2026-10-28 10:09:49 -07:00
Brent Simmons 46f09a4861 Fix test. 2026-10-27 14:30:59 -07:00
Brent Simmons 640878163e Open image in image viewer from local copy. 2026-10-27 14:29:05 -07:00
Brent Simmons 3e3b6881aa Load timeline thumbnail image in article view from local copy. Fall back to original URL if needed. 2026-10-27 14:27:29 -07:00
Brent Simmons 7c89314eaf Create ArticleImageSchemeHandler to serve images to article view when there's a cached copy. 2026-10-27 14:16:57 -07:00
Brent Simmons a01029386f Add TimelineThumbnailsDisplay.thumbnailMode. 2026-10-27 14:10:51 -07:00
Brent Simmons b80abf5cc8 Create ArticleThumbnailFinder.fullSizeImageData so article view can share timeline’s copy of an image. 2026-10-27 14:02:03 -07:00
Brent Simmons f05a9f1109 Save downloaded images as-is so the article view can show original at full size. 2026-10-27 13:58:22 -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 381c5e4d97 Add test for importing old database to new Images.db. 2026-10-27 12:04:50 -07:00
Brent Simmons e54785216d Add support for the extra files WAL mode adds. 2026-10-27 12:00:25 -07:00
Brent Simmons d10ab12736 Copy data from ImageMetadata.db to Images.db, then delete ImageMetadata.db. 2026-10-27 11:59:23 -07:00
Brent Simmons 42a21678d3 Rename ImagesMetadataDatabase class to ImageDatabase. 2026-10-27 11:54:14 -07:00
Brent Simmons ea3080011e Support WAL mode. 2026-10-27 11:50:34 -07:00
Brent Simmons 07468ada23 Fix comment. 2026-10-27 11:27:13 -07:00
Brent Simmons cfe748eef7 Remove unused code. 2026-10-27 11:26:03 -07:00
Brent Simmons 69bebf67af Avoid recomputing thumbnail URL. 2026-10-27 11:24:58 -07:00
Brent Simmons 3aa2459de6 Skip articles with no HTML. 2026-10-27 11:21:38 -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 55bcbd4bab Cap cache size at 20,000. 2026-10-27 11:09:19 -07:00
Brent Simmons 16770b9b52 Make sure search timeline has latest settings. 2026-10-27 11:05:18 -07:00
Brent Simmons 3d2b6cd8ea Keep top row visible when large thumbnails cause row height changes. 2026-10-27 11:01:29 -07:00
Brent Simmons 15110763e9 Download visible thumbnails ahead of next screen prefetches. 2026-10-27 10:59:09 -07:00
Brent Simmons 34e7559a3e Batch iOS timeline cell reloads. 2026-10-27 10:43:01 -07:00