Repository navigation
feat: videos upload command - #15
Merged
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
- upload: print video_id and URL before write_back so a write_back failure no longer hides the id; surface the failure with a manual-patch hint to prevent duplicate re-uploads - upload: drop handle_api_error call inside the quota handler so the loop breaks cleanly to the final summary; exit non-zero after summary on quota - discover: raise on orphan .yaml sidecars and near-miss thumbnail extensions (.jpeg/.gif/.webp/.bmp) instead of silently ignoring them - videos: revert out-of-scope fetch_videos snippet-source switch; keep scheduled_publish_at sourced from videos.list status as before - upload_pipeline: pass num_retries=3 to next_chunk so transient API/network errors retry during resumable upload
Add a Development section to README pointing contributors at `pre-commit install`, so the same ruff check + ruff format that CI runs also fires locally. Pre-commit is already in the dev group and configured in .pre-commit-config.yaml; the hook just needs installing once per clone. Also pick up a missing trailing newline in .editorconfig flagged by the end-of-file-fixer hook.
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.
Summary
yts videos upload <path>(single file or directory) bulk-uploads videos described by YAML sidecars; idempotent on re-run viavideo_idwritten back into the sidecarpublish_atschedules a private video for future release (forcesprivacy=private).jpgor.pngthumbnail with matching basename, automatically applied viathumbnails.setquotaExceeded,--max Ncaps a run, dry-run by defaultyts videos list --scheduledlists private videos with a futurepublishAtpydantic>=2.5(sidecar validation) andruamel.yaml>=0.18(write-back with comment preservation)Test plan
yts videos upload --helpshows path, --execute, --max--executeon the same directory: video lands on YouTube, sidecar getsvideo_id+uploaded_atpatched in--execute: skipped (already uploaded)--scheduledfilter: list a private video with a future publishAt, runyts videos list --scheduled, confirm only that one shows up