Support analog photo dates and correct gallery years
This commit is contained in:
+10
-4
@@ -136,11 +136,14 @@ Create **Publish to blog**:
|
||||
**ISO 8601**. After **End Repeat**, **Combine Text** from **Repeat Results**
|
||||
with **New Lines** and save it as **Photo Dates**. This preserves capture
|
||||
dates even when Shortcuts strips them from the exported JPEG data.
|
||||
5. **Make Archive** from **Shortcut Input**, format **ZIP**. Keep this output in
|
||||
5. Add **Ask for Input**, type **Text**, with the prompt **Date Taken (optional;
|
||||
YYYY, YYYY-MM-DD, or ISO timestamp)**. Save its response as **Date Taken**.
|
||||
This is useful for analog scans; leave it blank for digital photos.
|
||||
6. **Make Archive** from **Shortcut Input**, format **ZIP**. Keep this output in
|
||||
a variable named **Photo Archive**. This packages every selected image into
|
||||
one upload; using an image list directly in a File form field can send only
|
||||
the first image on some Shortcuts versions.
|
||||
6. **Get Contents of URL**: `https://theread.me/api/photos`.
|
||||
7. **Get Contents of URL**: `https://theread.me/api/photos`.
|
||||
- Method: **POST**.
|
||||
- Header: `Authorization` = `Bearer YOUR_TOKEN`.
|
||||
- Request Body: **Form**.
|
||||
@@ -149,8 +152,9 @@ Create **Publish to blog**:
|
||||
- `highlight`: type **Text**, value the highlight-name response. Select each
|
||||
prompt's specific output variable so the caption and highlight stay separate.
|
||||
- `photo_dates`: type **Text**, value **Photo Dates**.
|
||||
- `date_taken`: type **Text**, value **Date Taken**.
|
||||
- Do not set Content-Type; Shortcuts supplies the multipart boundary.
|
||||
7. Show the actual response and check its `count` against the number of selected
|
||||
8. Show the actual response and check its `count` against the number of selected
|
||||
images. Only show “Uploaded; publishing” when there is no `error`. Optionally poll the returned `status_url`
|
||||
with the same header. `pushed` means “GitHub Actions is building/deploying”;
|
||||
only `published` means the deployed site's receipt contains this album.
|
||||
@@ -167,7 +171,9 @@ Select still photos; videos/Live Photo video components aren't supported. The
|
||||
service reads EXIF `DateTimeOriginal` automatically when it is present. Because
|
||||
iOS Shortcuts can blank that EXIF field while creating the ZIP, `photo_dates`
|
||||
supplies the same Photos-library metadata explicitly, one ISO 8601 value per
|
||||
image in archive order. An upload without either source is rejected instead of
|
||||
image in archive order. `date_taken` overrides both sources for the whole batch;
|
||||
it accepts a year, calendar date, or ISO timestamp and is intended for analog
|
||||
photos. An upload without any date source is rejected instead of
|
||||
being placed under the upload year. Re-sharing the same images, caption, and
|
||||
highlight with dates replaces the earlier undated upload. Captions are plain
|
||||
text and optional.
|
||||
|
||||
Reference in New Issue
Block a user