Repository navigation
Add a captions badge on video thumbnails - #7851
Merged
Chocobozzz merged 5 commits intoNov 5, 2026
Merged
Conversation
Expose the languages of the video captions in videos lists (`captionLanguages`) and display a "CC" badge on the thumbnail when the video has at least one caption in the user interface language. Fixes Chocobozzz#7826 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
|
Thank you |
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.
Add a captions badge on video thumbnails
Fixes #7826
As discussed in the issue, the badge is only displayed when the video has at least one caption in the user's interface language (a Spanish caption is not useful for someone who only reads French).
What changed
Server
captionLanguages(e.g.["ar", "zh"])videoCaptiontableClient
fr-FRmatchesfr,zh-Hans-CNmatcheszh)Tests
hasLanguageForLocalehelpercaptionLanguagesin the videos lists (no caption, two captions, after a caption deletion)Notes
captionLanguagesis not returned by the video details endpoint, nor in playlist elementsopenapi.yamlis not updated yet