Changeset 3e86f1c in Klonkt for package.json


Ignore:
Timestamp:
06/15/2026 03:23:29 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
7f46817d
Parents:
4c9f29a
Message:

feat: automatic track duration — no more manually entering seconds

The duration of an audio track is now determined automatically instead of manually:

  • On upload: read from ffmpeg's codecData event during the existing transcode (no extra ffprobe binary). The upload INSERT never set duration before -> every track started as NULL ('--:--'); that is now fixed.
  • In the track editor: a hidden <audio preload=metadata> reads the duration and fills the field if it's still empty (manual override still possible).
  • Backfill: npm run backfill:durations fills existing tracks without duration via ffmpeg (probeDuration reads only codecData and stops immediately -> fast).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package.json

    r4c9f29a r3e86f1c  
    99    "dev": "node --watch src/server.js",
    1010    "migrate": "node src/db/migrate.js",
    11     "reset-admin": "node scripts/reset-admin.mjs"
     11    "reset-admin": "node scripts/reset-admin.mjs",
     12    "backfill:durations": "node scripts/backfill-durations.mjs"
    1213  },
    1314  "dependencies": {
Note: See TracChangeset for help on using the changeset viewer.