Commit Graph
24 Commits
Author SHA1 Message Date
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 63b3078231 Figure out which images to remove in background. 2026-10-30 18:09:00 -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 a99fd2e5df Add ArticleThumbnailFinder.loadSavedThumbnailURLs. 2026-10-30 17:16:21 -07:00
Brent Simmons 7125510fa0 Save chosen thumbnail URL for each article. 2026-10-30 12:00:32 -07:00
Brent Simmons 99b33647e7 Add support for scaled icons on disk. 2026-10-29 11:13:17 -07:00
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 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 14f570bbf1 Start a waiting image download immediately when article view needs the image. 2026-10-28 11:13:02 -07:00
Brent Simmons 46f09a4861 Fix test. 2026-10-27 14:30:59 -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 42a21678d3 Rename ImagesMetadataDatabase class to ImageDatabase. 2026-10-27 11:54:14 -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 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 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 fa4c03d94b Fix test. 2026-10-26 19:52:32 -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