Commit Graph
103 Commits
Author SHA1 Message Date
Brent Simmons 6e9ee02557 Skip downloading URLs that aren’t http or https. 2025-10-18 10:16:49 -07:00
Brent Simmons 85ebdefede Use English locale when checking lower-cased URL schemes. 2025-10-18 10:16:35 -07:00
Brent Simmons a68076fb12 Add special case timing feature, so some feeds can be refreshed less often. 2025-10-18 09:50:52 -07:00
Brent Simmons 65bb228689 Streamline downloadDidComplete. Use new async methods. Make sure conditional GET info is updated on 304 responses. 2025-10-17 22:40:03 -07:00
Brent Simmons e064aea97d Skip caching errors — those are things like connectivity errors, and shouldn’t be cached. 2025-10-17 22:39:12 -07:00
Brent Simmons 4343afd27c Create async wrapper for parser(parserData) method. 2025-10-17 22:38:24 -07:00
Brent Simmons cf9a0966ae Create async wrapper for update(feed, parsedFeed) method. 2025-10-17 22:38:06 -07:00
Brent Simmons 4a9e0ca8cc Use English locale for lowercasing host names. 2025-10-17 13:59:32 -07:00
Brent Simmons adae8b41a8 Set feed.lastCheckDate on initial download. 2025-10-17 11:36:27 -07:00
Brent Simmons f197b1d9a1 Add lastCheckDate to feed metadata. 2025-10-17 11:36:13 -07:00
Brent Simmons 9950bb9def Save conditional GET info on initial feed download so that it gets used for subsequent refreshes. 2025-10-17 11:10:40 -07:00
Brent Simmons f880032e3a Handle special cases for skipping downloading feed icons and HTML metadata. 2025-10-16 21:53:44 -07:00
Brent Simmons 5e6734047c Add and use special case FeedSpecifier. 2025-10-16 15:54:32 -07:00
Brent Simmons 27f72db413 Use request.addSpecialCaseUserAgentIfNeeded. 2025-10-16 15:54:13 -07:00
Brent Simmons 6fd18c8bc2 Add isRachelByTheBayURL detector. 2025-10-16 15:31:56 -07:00
Brent Simmons 6f468c8213 Use modifiedRequest.addSpecialCaseUserAgentIfNeeded instead of the duplicate code it was using. 2025-10-16 15:31:13 -07:00
Brent Simmons d6d3419aa3 Remove unneeded whitespace. 2025-10-16 15:19:46 -07:00
Brent Simmons bbc0313e79 Use shared DownloadCache. 2025-10-16 14:49:50 -07:00
Brent Simmons 0b215c3c76 Add shared DownloadCache, to be used across different URLSessions. 2025-10-16 14:45:31 -07:00
Brent Simmons a16cda2665 Cache responses for just over 10 minutes, so that feeds can’t be refreshed too often. Be kind to feed publishers! Fix #4700. 2025-10-16 14:14:03 -07:00
Brent Simmons 2cd88eca96 Set feed.conditionalGetInfo only if it’s different. 2025-10-15 13:57:13 -07:00
Brent Simmons 634bc21c24 Drop conditional GET info every 8 days, to handle buggy servers that always respond with a 304 when *any* conditional GET info is sent. Also: add some more logging. 2025-10-15 10:48:58 -07:00
Brent Simmons 00376a91b6 Add conditionalGetInfoDate to keep track of when conditional GET info is set. 2025-10-15 10:48:26 -07:00
Brent Simmons 18d239c946 Cache 4xx responses for some hours (53, currently) — instead of for the duration of the current run of the app. This fixes one possible cause of feeds not updating. 2025-10-14 22:24:42 -07:00
Brent Simmons 212d9b40be Resolve link URLs. Handle Daring Fireball’s sometimes-crossed permalinks and external links. 2025-10-14 18:50:17 -07:00
Brent Simmons 31eb5b5bfd Add baseline for performance tests. 2025-10-14 18:49:19 -07:00
Brent Simmons 7314f9a7f3 Lightly improve isValidURLString. 2025-10-14 16:17:13 -07:00
Brent Simmons ea771e9b27 Add code and tests to parse relative home page URLs in Atom feeds. 2025-10-14 11:23:37 -07:00
Brent Simmons 71b4472e53 Add RSMarkdown module which imports swift-markdown and cmark-gfm external modules. Create function to generate HTML from Markdown. 2025-10-07 11:53:07 -07:00
Brent Simmons 207fe6649f Skip refreshing in local and Feedly accounts if running unit tests. 2025-10-06 10:59:25 -07:00
Brent Simmons 22ef2f849f Add logging to isRunningUnitTests (one log per run, not per call). 2025-10-06 10:59:07 -07:00
Brent Simmons 4e9f29d54b Add check to see if running unit tests. This will allow us to skip certain work (like syncing) when running unit tests. Also useful later for self-mocking. 2025-10-06 10:25:17 -07:00
Brent Simmons e0a3ba69e1 Use correct container hierarchy to fix AppleScript access to articles in feeds in folders. Fix #4412. 2025-10-04 16:56:59 -07:00
Brent Simmons b784abbec1 Create and use pngData() method for Mac to get data from image as PNG instead of TIFF — use less memory. 2025-10-04 08:27:30 -07:00
Brent Simmons 8916c3024f Find suitable images in one pass instead of three. Add debug logging. 2025-10-03 20:01:45 -07:00
Brent Simmons 6e6177d087 Avoid a runtime console warning about invalid parameter by guarding that maxPixelSize > 0 and count of images > 0. 2025-10-03 14:35:53 -07:00
Brent Simmons 6351ebe343 Add debug logging to ArticlesDatabase. 2025-10-03 14:18:06 -07:00
Brent Simmons 6e12b70a93 Replace os_log with Logger. 2025-10-02 22:02:51 -07:00
Brent Simmons ec1a971fba Use the shared cloudKitLogger. 2025-10-02 22:02:41 -07:00
Brent Simmons 21eab80e0f Replace os_log with Logger. 2025-10-02 21:46:16 -07:00
Brent Simmons 1a635bfe02 Replace os_log with Logger. 2025-10-02 21:42:25 -07:00
Brent Simmons ad5c78c71f Replace os_log with Logger. 2025-10-02 21:40:09 -07:00
Brent Simmons 6779c18892 Replace OSLog with Logger. 2025-10-02 21:13:00 -07:00
Brent Simmons 8e295ec4cb Replace OSLog with Logger. 2025-10-02 21:03:20 -07:00
Brent Simmons e41e076569 Replace OSLog with Logger. 2025-10-02 21:00:44 -07:00
Brent Simmons 68f3e231a4 Replace OSLog with Logger. 2025-10-02 20:54:23 -07:00
Brent Simmons 72a8b3627e Replace OSLog with Logger. 2025-10-02 20:49:58 -07:00
Brent Simmons b6c6e987ef Replace OSLog with Logger. 2025-10-02 20:27:15 -07:00
Brent Simmons 66bc751501 Make DatabaseError a LocalizedError. 2025-10-02 20:26:03 -07:00
Brent Simmons cd1575b07b Add RSCore scheme. 2025-10-02 20:25:48 -07:00