diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/data.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/data.lua b/lib/data.lua index 1173fce..c66aa42 100644 --- a/lib/data.lua +++ b/lib/data.lua @@ -594,7 +594,8 @@ end -- The Immich memories index written by bin/immich-fetch.sh. -- -- Returns a list of { id, year, taken = { y, m, d, H, M }, place }, plus --- .url, the server's address for a click-through, or nil when +-- .url, the server's address for a click-through, and .week, true when the +-- photos are the past week's fallback rather than today's, or nil when -- the index is absent or carries no 'generated' key. nil means "the fetch never -- ran"; an empty list means "no memories today", which the card names -- differently. `place` is nil when the key lacks asset.read or the photo has no @@ -608,6 +609,8 @@ function M.immich_parse(text) generated = true elseif kind == 'url' then out.url = rest + elseif kind == 'scope' then + out.week = rest == 'week' elseif kind == 'photo' then -- The place is last and takes the rest of the line, so a pipe in a -- place name cannot shift a field. |
