Files
JakeHillion 02c2dc598f
commit-validation / validate-single-commit (pull_request) Successful in 7s
buildbot/nix-eval Build done. (636 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
offline-youtube: unstall sync and summarise each run
The sync unit last completed on 2026-08-23 and downloaded nothing after
that. YouTube gated the android_vr client that yt-dlp 2026.07.04 falls
back to, so every download returned HTTP 403. yt-dlp also abandoned the
rest of the playlist on the first error, and removing a video from the
playlist left its download-archive entry behind so re-adding it never
downloaded.

Pin yt-dlp to 2026.08.19, which extracts via the visionos client, behind
an assertion that fails evaluation once nixpkgs carries that version or
newer. Pass --ignore-errors so one unavailable video no longer abandons
the playlist, and report considered, already present, downloaded and
failed counts derived from the download archive, listing the reported
errors whenever a video is missing. Prune archive entries for removed
videos, and abort the cleanup pass if the playlist cannot be expanded.

Deriving the counts from the archive rather than yt-dlp's output keeps
them correct regardless of how it formats its progress.

Test plan:
- CI
- Deployed to phoenix: 74 considered, 71 already present, 3 downloaded,
  0 failed, including the two videos stuck since 2026-08-23
- Confirmed --ignore-errors downloads a good video alongside an
  unavailable one and records only the success in the archive
- Confirmed a video in the archive but absent from disk is not
  re-downloaded, so deletions made on a synced device stay deleted
- Seeded an obsolete video and confirmed it was deleted and its archive
  entry pruned, while a video whose ID begins with a hyphen was kept
- Confirmed a failed playlist expansion exits non-zero and deletes nothing
- Confirmed the yt-dlp override evaluates now and fails once nixpkgs
  reaches 2026.08.19 or newer
2026-08-31 22:57:15 +01:00
..