Skip to content

Fill audio size and duration for all episodes - #105

Merged
AnnatarHe merged 1 commit into
mainfrom
cursor/fill-audio-size-duration-6d05
Nov 24, 2026
Merged

AnnatarHe merged 1 commit into
mainfrom
cursor/fill-audio-size-duration-6d05

Conversation

@AnnatarHe

Copy link
Copy Markdown
Member

Fills size and duration on every episode in src/content/posts (ep0–ep80, sp02, sp03). Rebased onto current main after the transcript PRs (#97–#104). Git merged those cleanly: every srt: line is unchanged, and the only diff against main is the two numeric fields.

size and duration are z.number().nonnegative() in src/content.config.ts. Nothing in the site reads them yet (rss.xml.ts does not emit an enclosure or itunes:duration, and episode JSON-LD does not include them). Values follow the usual podcast meaning of those fields:

  • size is the audio file size in bytes (RSS enclosure length).
  • duration is the length in whole seconds (numeric form of itunes:duration).

How the numbers were measured

Posts were matched to items in the Ximalaya album RSS https://www.ximalaya.com/album/53875103.xml (83 items, 83 posts) by episode number, or by title when the feed title has no EPxx prefix (ep57 and ep62 were matched by hand because the wording differs).

The post url field is not a per-episode audio file: ep0–ep18 and sp02 all point at https://cdn.asynctalk.com/podcast/episode01.mp3, which does not resolve, and the later posts point at 小宇宙 pages, YouTube, or the episode page. The audio used is the file each Ximalaya <enclosure> redirects to (User-Agent: AppleCoreMedia/1.0.0).

  • size is that file’s Content-Length. It matches ffprobe’s format size on all 83 episodes.
  • duration is ffprobe duration rounded to the nearest second.

The feed’s enclosure length matched Content-Length on 25 episodes and was stale (often tens of times larger) on the other 58, so those 58 use the measured file size. itunes:duration matched the rounded ffprobe value within 1 second on 79 episodes. Four original MP3s differ by more than that; the ffprobe value is what was written:

slug duration written ffprobe (s) itunes:duration (s)
/posts/ep4 3594 3593.788 3599
/posts/ep5 3508 3507.582 3512
/posts/ep17 1429 1429.372 1431
/posts/ep19 2192 2191.736 2195

Spot checks: ep0 enclosure length 12805624 equals Content-Length, duration 527.813s → 528 (feed 08:47). ep43 length 158614080 matches, duration 3965.352s → 3965 (feed 1:06:05). ep45 feed length 1012429880 vs file 42686070, duration 5273.067s → 5273 (feed 1:27:53). ep80 feed length 197994460 vs file 5567049, duration 687.480s → 687 (feed 11:27).

Result

Updated 83 posts. Skipped none. There is no sp01 in the repo.

pnpm build (astro check, astro build, seo:check) passed after the rebase: 94 pages, 83 RSS items.

slug size (bytes) duration (seconds) source
/posts/ep0 12805624 528 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep1 68641376 2860 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep2 176015391 4399 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep3 91991629 3832 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep4 86250938 3594 HEAD+ffprobe (enclosure length matched; itunes:duration 3599s)
/posts/ep5 84182008 3508 HEAD+ffprobe (enclosure length matched; itunes:duration 3512s)
/posts/ep6 154297931 3856 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep7 80562948 3356 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep8 112875972 4703 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep9 190824040 4769 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep10 150314844 3754 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep11 67612644 2812 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep12 61979755 2582 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep13 29939945 1247 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep14 33783164 1403 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep15 36217248 1509 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep16 34167756 1423 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep17 34316242 1429 HEAD+ffprobe (enclosure length matched; itunes:duration 1431s)
/posts/ep18 29244450 1218 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep19 52614422 2192 HEAD+ffprobe (enclosure length matched; itunes:duration 2195s)
/posts/ep20 9661937 1193 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep21 15760478 1947 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep22 8132321 1004 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep23 9957800 1230 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep24 127082880 3177 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep25 8079692 998 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep26 11948657 1476 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep27 5986201 739 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep28 8979270 1109 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep29 6461737 798 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep30 7261694 897 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep31 84095527 5256 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep32 193854720 4846 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep33 12273074 1516 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep34 10711127 1323 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep35 10005905 1236 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep36 12699740 1569 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep37 12225331 1510 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep38 17577435 2171 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep39 6997266 1148 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep40 5748214 943 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep41 6190886 1015 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep42 6377127 1046 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep43 158614080 3965 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/ep44 20823744 3416 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep45 42686070 5273 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep46 7926696 979 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep47 8634551 1066 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep48 12756128 1576 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep49 374853 46 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep50 5146771 636 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep51 4470612 552 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep52 3788560 468 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep53 3764746 465 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep54 2460482 304 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep55 7270556 898 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep56 1516691 187 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep57 5010068 619 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep58 1847061 228 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep59 2929737 362 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep60 2702670 334 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep61 2791507 345 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep62 3121697 385 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep63 2371489 293 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep64 6724515 830 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep65 3980761 492 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep66 5917215 731 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep67 3305261 408 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep68 2948846 364 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep69 7998565 988 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep70 2342789 289 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep71 2169001 268 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep72 5321728 657 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep73 2278898 281 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep74 6338677 783 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep75 6328131 782 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep76 2827724 349 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep77 5928307 732 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep78 3054031 377 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep79 4099462 506 HEAD+ffprobe (feed enclosure length was stale)
/posts/ep80 5567049 687 HEAD+ffprobe (feed enclosure length was stale)
/posts/sp02 3108466 129 ximalaya enclosure, confirmed by HEAD+ffprobe
/posts/sp03 540633 67 HEAD+ffprobe (feed enclosure length was stale)
Open in Web Open in Cursor 

Record each episode's audio file size in bytes and duration in whole
seconds, measured from the Ximalaya enclosure with HTTP HEAD and ffprobe.

Co-authored-by: Le He <Annatar.He+github@gmail.com>
@AnnatarHe
AnnatarHe temporarily deployed to cursor/fill-audio-size-duration-6d05 - asynctalk-website PR #105 November 24, 2026 11:32 — with Render Destroyed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T11:33:11.549425Z 638197e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AnnatarHe
AnnatarHe merged commit 1e0e2ed into main Nov 24, 2026
2 checks passed
@AnnatarHe
AnnatarHe deleted the cursor/fill-audio-size-duration-6d05 branch November 24, 2026 11:54

This branch was successfully deployed

No deployments
cursor/fill-audio-size-duration-6d05 - asynctalk-website PR #105 — 638197ec Deployed Nov 24, 2026 by AnnatarHe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants