Repository navigation
feat(media): video upload on post, reply, and quote - #96
Closed
jollyroger1480 wants to merge 1 commit into
Closed
jollyroger1480 wants to merge 1 commit into
jollyroger1480 wants to merge 1 commit into
Conversation
…ATUS poll, --video flag client.py: upload_media auto-detects video files (INIT with media_category=tweet_video, 4 MB chunked APPEND, FINALIZE, STATUS polling with 300s timeout and failed-state detection). Image path unchanged except explicit tweet_image category. 512 MB cap per X. cli.py: --video/-V on post, reply and quote (max 1 video, mutually exclusive with --image per X media rules). Live-tested end to end: 11.1 MB / 3-segment vertical mp4 upload with async processing, attached to a successful post; image path regression-tested. Free (non-Premium) accounts are additionally capped by X at 2:20 duration and 280 chars — those errors surface at CreateTweet (324 / 186), not during upload. Closes jackwener#13. Video half of jackwener#62.
Contributor
Author
|
Closing this pull request. |
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.
What
Video upload support for the CLI. This is the request in #13.
client.py—upload_mediais now format-aware (no signature change):video/*mime):INITwithmedia_category=tweet_video→ 4 MB chunkedAPPEND→FINALIZE→STATUSpolling until async processing succeeds (300 s timeout, explicit failed-state error). 512 MB cap (X's hard limit).tweet_imagecategory._build_headersand curl_cffi session — zero new dependencies.cli.py—--video / -Vonpost,replyandquote(max 1 video; mutually exclusive with--image, per X's one-media-type rule). Help text documents the free-tier duration cap.Live-tested
Relation to #62
#62 already proposes video upload on
post, plus long-formCreateNoteTweet. This branch does not add long-form. It does add--videoonreplyandquote, and the upload path above was used for a real post.Closes #13.