From 9f6414838d4fabc174bb193f34225de8d9fc8079 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 29 Sep 2026 14:17:33 +0200 Subject: feat(immich): fall back to the past week's memories A day with no memories left the card showing only a notice. When today has none, immich-fetch.sh now merges the memories of each of the past six days, skipping a day whose request fails, and marks the index with a scope week line. The subtitle names where the photos come from, Today or This week, before the i/n counter, and the empty notice reads no memories this week. Co-Authored-By: Claude Opus 5.5 --- test/test_data.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test_data.lua') diff --git a/test/test_data.lua b/test/test_data.lua index 7b84b3d..4ed58f8 100644 --- a/test/test_data.lua +++ b/test/test_data.lua @@ -457,5 +457,7 @@ assert(data.immich_parse('photo a|2014||\n') == nil, 'no generated key: nil') assert(data.immich_parse(nil) == nil, 'nil index: nil') local none = data.immich_parse('generated 1\n') assert(none and #none == 0, 'no memories today: empty list, not nil') +assert(not im.week, 'no scope line: today') +assert(data.immich_parse('generated 1\nscope week\n').week, 'scope week parses') print('test_data: all assertions passed') -- cgit v1.2.3