Skip to content

Commit 280b628

Browse files
authored
Merge pull request #8 from osisdie/fix/presigned-urls
Fix/presigned urls
2 parents b7c2923 + 77c1596 commit 280b628

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.claude/commands/ai-news-digest-yt.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ python scripts/yt/upload_b2.py "digest-yt/{{date}}/summary_en_$(date +%Y%m%d).pd
163163
python scripts/yt/upload_b2.py "digest-yt/{{date}}/summary_zh-tw_$(date +%Y%m%d).pdf" --prefix "ai-digest-yt/{{date}}"
164164
```
165165

166-
Capture the download URLs from stdout. If upload fails, continue without links.
166+
Capture the **full presigned URLs** (including the `?Authorization=...` query parameter) from stdout. The B2 bucket is private, so bare URLs without the auth token will return 401. Always use the complete presigned URL in Slack links. If upload fails, continue without links.
167167

168168
After successful uploads, update `video_status[VIDEO_ID].steps.b2_upload = true` for all videos, then save state. Skip if already `true` from Step 0.
169169

@@ -186,9 +186,9 @@ Build a Slack mrkdwn message and post it. Use this exact format:
186186
187187
(repeat for each video)
188188
189-
:page_facing_up: *PDF Downloads*
190-
> :small_blue_diamond: <B2_URL|summary_en_YYYYMMDD.pdf>
191-
> :small_blue_diamond: <B2_URL|summary_zh-tw_YYYYMMDD.pdf>
189+
:page_facing_up: *PDF Downloads* _(links expire in 7 days)_
190+
> :small_blue_diamond: <B2_PRESIGNED_URL|summary_en_YYYYMMDD.pdf>
191+
> :small_blue_diamond: <B2_PRESIGNED_URL|summary_zh-tw_YYYYMMDD.pdf>
192192
193193
_Compiled from @AIDailyBrief by Claude Code :zap:_
194194
```

0 commit comments

Comments
 (0)