Repository navigation
Fill audio size and duration for all episodes - #105
Merged
Merged
Conversation
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
temporarily deployed
to
cursor/fill-audio-size-duration-6d05 - asynctalk-website PR #105
November 24, 2026 11:32 — with
Render
Destroyed
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fills
sizeanddurationon every episode insrc/content/posts(ep0–ep80, sp02, sp03). Rebased onto currentmainafter the transcript PRs (#97–#104). Git merged those cleanly: everysrt:line is unchanged, and the only diff againstmainis the two numeric fields.sizeanddurationarez.number().nonnegative()insrc/content.config.ts. Nothing in the site reads them yet (rss.xml.tsdoes not emit an enclosure oritunes:duration, and episode JSON-LD does not include them). Values follow the usual podcast meaning of those fields:sizeis the audio file size in bytes (RSS enclosurelength).durationis the length in whole seconds (numeric form ofitunes: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 noEPxxprefix (ep57andep62were matched by hand because the wording differs).The post
urlfield is not a per-episode audio file: ep0–ep18 and sp02 all point athttps://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).Content-Length. It matchesffprobe’s format size on all 83 episodes.ffprobeduration rounded to the nearest second.The feed’s enclosure
lengthmatchedContent-Lengthon 25 episodes and was stale (often tens of times larger) on the other 58, so those 58 use the measured file size.itunes:durationmatched 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:/posts/ep4/posts/ep5/posts/ep17/posts/ep19Spot checks: ep0 enclosure length 12805624 equals
Content-Length, duration 527.813s → 528 (feed08:47). ep43 length 158614080 matches, duration 3965.352s → 3965 (feed1:06:05). ep45 feed length 1012429880 vs file 42686070, duration 5273.067s → 5273 (feed1:27:53). ep80 feed length 197994460 vs file 5567049, duration 687.480s → 687 (feed11:27).Result
Updated 83 posts. Skipped none. There is no
sp01in the repo.pnpm build(astro check,astro build,seo:check) passed after the rebase: 94 pages, 83 RSS items./posts/ep0/posts/ep1/posts/ep2/posts/ep3/posts/ep4/posts/ep5/posts/ep6/posts/ep7/posts/ep8/posts/ep9/posts/ep10/posts/ep11/posts/ep12/posts/ep13/posts/ep14/posts/ep15/posts/ep16/posts/ep17/posts/ep18/posts/ep19/posts/ep20/posts/ep21/posts/ep22/posts/ep23/posts/ep24/posts/ep25/posts/ep26/posts/ep27/posts/ep28/posts/ep29/posts/ep30/posts/ep31/posts/ep32/posts/ep33/posts/ep34/posts/ep35/posts/ep36/posts/ep37/posts/ep38/posts/ep39/posts/ep40/posts/ep41/posts/ep42/posts/ep43/posts/ep44/posts/ep45/posts/ep46/posts/ep47/posts/ep48/posts/ep49/posts/ep50/posts/ep51/posts/ep52/posts/ep53/posts/ep54/posts/ep55/posts/ep56/posts/ep57/posts/ep58/posts/ep59/posts/ep60/posts/ep61/posts/ep62/posts/ep63/posts/ep64/posts/ep65/posts/ep66/posts/ep67/posts/ep68/posts/ep69/posts/ep70/posts/ep71/posts/ep72/posts/ep73/posts/ep74/posts/ep75/posts/ep76/posts/ep77/posts/ep78/posts/ep79/posts/ep80/posts/sp02/posts/sp03