Problem
downloadYtDlpVerified() fails with "Checksum mismatch" for legitimate cached binaries after any new yt-dlp release.
Steps
await downloadYtDlp() — caches yt-dlp v1 in bin/.
- yt-dlp publishes v2 upstream (happens ~weekly).
await downloadYtDlpVerified() — throws.
Expected
Either re-download when checksum mismatches, or fetch checksum for the cached binary's actual version.
Actual
Error: Checksum mismatch for yt-dlp.exe. Expected <v2-hash>, got <v1-hash>
Root cause
src/utils/ytdlp.ts:47-49 — downloadYtDlp() returns early if file exists (no version check). src/utils/ytdlp.ts:96 — downloadYtDlpVerified() then fetches SHA from releases/latest/download/SHA2-256SUMS, so the compare is v1-local vs v2-latest.
Environment
ytdlp-nodejs 3.4.2, Node >=16 per package.json engines.
Thanks for maintaining iqbal-rashed/ytdlp-nodejs!
Problem
downloadYtDlpVerified()fails with "Checksum mismatch" for legitimate cached binaries after any new yt-dlp release.Steps
await downloadYtDlp()— caches yt-dlp v1 inbin/.await downloadYtDlpVerified()— throws.Expected
Either re-download when checksum mismatches, or fetch checksum for the cached binary's actual version.
Actual
Root cause
src/utils/ytdlp.ts:47-49—downloadYtDlp()returns early if file exists (no version check).src/utils/ytdlp.ts:96—downloadYtDlpVerified()then fetches SHA fromreleases/latest/download/SHA2-256SUMS, so the compare is v1-local vs v2-latest.Environment
ytdlp-nodejs 3.4.2, Node >=16 per package.json engines.
Thanks for maintaining iqbal-rashed/ytdlp-nodejs!