Skip to content

Harden YouTube uploads and validate downloaded media - #2

Merged
roperi merged 1 commit into
mainfrom
fix/reliable-youtube-uploads
Sep 3, 2026
Merged

roperi merged 1 commit into
mainfrom
fix/reliable-youtube-uploads

Conversation

@roperi

@roperi roperi commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes long-video upload failures observed after the project modernization. Large resumable uploads were suffering transport disconnects, while the downloaded MP4 files remained valid.

Changes

  • Upgrade and align the runtime upload dependencies.
  • Use larger resumable chunks with progress and retry diagnostics.
  • Detect YouTube upload-limit errors and stop the run immediately.
  • Validate downloaded media with ffprobe, with optional full ffmpeg decoding for troubleshooting uploads.
  • Add SQLite-backed six-attempt UTC-day protection.
  • Add an opt-in --troubleshooting-upload profile for private, long-form-only validation.
  • Add regression tests and documentation.

Verification

  • make check passed in the project virtual environment.
  • 25 tests passed.
  • Coverage: 85.58%.
  • Ruff and pip check passed.
  • A private landscape test upload completed successfully after a resumable retry.

The pre-push hook was bypassed because it invoked the system Python rather than the validated project virtual environment; the hook failure was ModuleNotFoundError: reddit2tube.

@roperi
roperi merged commit 1d53ca4 into main Sep 3, 2026
8 checks passed
@roperi
roperi deleted the fix/reliable-youtube-uploads branch September 3, 2026 16:56
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.

1 participant