Skip to content

Set a video's cover with --thumbnail and --thumbnail-at, and keep covers on update - #3

Merged
lao9s merged 1 commit into
mainfrom
video-thumbnails
Nov 16, 2026
Merged

lao9s merged 1 commit into
mainfrom
video-thumbnails

Conversation

@lao9s

@lao9s lao9s commented Nov 16, 2026

Copy link
Copy Markdown
Member

Summary

Video covers from the CLI, for inovector/mixpost-pro-team#279.

  • --thumbnail video_id=image_id sets an image from the media library as the video's cover.
  • --thumbnail-at video_id=time sets a moment of the video, in milliseconds or as a duration like 2.5s. TikTok takes only this.
  • Both can be given for the same video, to cover every account. The video must be in the post's media.
  • Fix: post update sent the post back without its video covers, which removed them. It now keeps the covers of the videos the post still posts, including in rewritten content.

Tests

internal/cli/post_thumbnail_test.go (new): setting a cover both ways, milliseconds and durations, a usage error for a video the post does not have, and covers kept or replaced on update.

…ers on update

--thumbnail video_id=image_id sets the image, --thumbnail-at video_id=time the moment of the video that TikTok takes. post update sent the post back without its video covers, which removed them; it now carries them, also into rewritten content that still posts the video.
@lao9s
lao9s merged commit bb43f20 into main Nov 16, 2026
4 checks passed
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