Commit Graph
56 Commits
Author SHA1 Message Date
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 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 b06fcfdc63 Get the largest frame. 2026-10-28 13:30:47 -07:00
Brent Simmons c6cf4e704c Check if connectivity is good before downloading images. 2026-10-28 11:48: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 14f570bbf1 Start a waiting image download immediately when article view needs the image. 2026-10-28 11:13:02 -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 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 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 55bcbd4bab Cap cache size at 20,000. 2026-10-27 11:09:19 -07:00
Brent Simmons 15110763e9 Download visible thumbnails ahead of next screen prefetches. 2026-10-27 10:59:09 -07:00
Brent Simmons 3db7db4f4a Keep a max (currently 60) number of downloads waiting so we’re not downloading for scrolled-past rows too much. 2026-10-27 10:36:45 -07:00
Brent Simmons beea83ce1b Use DownloadedImageCache with favicons. 2026-10-27 10:30:42 -07:00
Brent Simmons b4de29a32d Check feed icons and author avatars with server periodically, in case they’ve changed. 2026-10-27 10:27:43 -07:00
Brent Simmons ebfa6ed0e4 Delete least recently used images on disk once a size cap is reached. 2026-10-27 10:09:36 -07:00
Brent Simmons fd191c154f Record image size, etag, etc. 2026-10-26 22:20:16 -07:00
Brent Simmons f7daad126b Decode thumbnails at display size from DownloadedImageCache. 2026-10-26 21:12:21 -07:00
Brent Simmons 6831d31fc9 Create DownloadedImageCache. 2026-10-26 21:05:41 -07:00
Brent Simmons 3e962e641f Record images with insignificant dimensions separately from download failures, so they don’t hide feed icons. 2026-10-26 19:57:25 -07:00
Brent Simmons f5f9043b05 Show thumbnails in timeline. 2026-10-25 14:55:23 -07:00
Brent Simmons 7c9b0cd1c8 Add regular and large thumbnail image downloaders. 2026-10-25 14:44:47 -07:00
Brent Simmons f2ac871b99 Create ArticleThumbnailFinder and ArticleThumbnailTable to find thumbnails. 2026-10-25 11:57:49 -07:00
Brent Simmons 3dfe0595f6 Switch from OSAllocatedUnfairLock to Mutex. 2026-10-21 19:10:31 -07:00
Brent Simmons a2b1ea7e5e Prefer a feed's declared icon over a previously discovered home-page icon. Fixes #5376. 2026-08-02 22:34:17 -07:00
Brent Simmons cc19be05a6 Skip the home-page icon fallback while a feed's declared icon is still downloading. Fixes #5376. 2026-08-02 22:32:08 -07:00
Brent Simmons 6d259827f0 Use a constant logging system name instead of getting it from Bundle. 2026-08-02 10:33:23 -07:00
Brent Simmons 75755af700 Use browser agent UA for image and theme downloads. Fixes #4868. 2026-07-29 10:17:31 -07:00
Brent Simmons 1af39fe86d Download feed icons when available rather than waiting for display in timeline. 2026-07-02 09:10:48 -07:00
Brent Simmons 24b294a877 Add additional exclusions for feed-specified images. 2026-06-29 10:47:10 -07:00
Brent Simmons 55a9952587 Add additional special cases to ignore feed-specified image. 2026-06-29 10:30:22 -07:00
Brent Simmons 5389ff3195 Target cell reloads when favicon is available. Makes timeline scrolling faster. 2026-06-21 17:15:39 -07:00
Brent Simmons 0d36fb311b Use dynamic RSColor (NS/UI Color) instead of CGColor, which allows one-time evaluation of smart-feed icons. 2026-06-21 16:06:09 -07:00
Brent Simmons 040baa7f3e Move image luminance calculation to background queue as much as possible. 2026-06-21 12:28:33 -07:00
Brent Simmons 9ba00bd69e Show downloaded byte counts in image and HTML metadata activity log entries. 2026-06-18 09:24:30 -07:00
Brent Simmons 85c000aad3 Add and use DownloadResponse. Note in activity log when a download was returned from the cache. 2026-06-18 09:08:02 -07:00
Brent Simmons e412f333d6 Remove no-longer-needed DatabaseResult. 2026-06-10 13:23:24 -07:00
Brent Simmons fea5b057d3 Use DELETE instead of WAL, since we're not doing concurrent reads on databases. 2026-05-31 11:58:39 -07:00
Brent Simmons 6fdda05ec3 Report per-database duration when vacuuming. 2026-05-29 16:51:35 -07:00
Brent Simmons e4deea8781 Add additional detail to activity log. 2026-05-29 12:26:42 -07:00
Brent Simmons 39d9da60a0 Add logging. 2026-05-29 12:26:32 -07:00
Brent Simmons 13d123f365 Add logging for initial fetches. Plenty fast on my M1 Mac: homePageFavicon 245 rows in 0.000416 seconds, feedIconURL 13 rows
in 0.000048 seconds, downloadFailure 48 rows in 0.000077 seconds, total 0.000564 seconds
2026-05-29 11:20:46 -07:00
Brent Simmons 3af0d7cf2f Make sure image URLs start with http:// or https://. 2026-05-29 11:02:44 -07:00
Brent Simmons 2205420868 Use WAL for image database. 2026-05-29 11:00:04 -07:00