Repository navigation
docs: 补齐 variants 元素契约与 CHANGELOG 近三批 resolve 变更 - #29
Merged
Merged
Conversation
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.
内容
data.variants元素契约:五键(url/bitrate/width/height/quality)各自的类型与 null 语义、排序规则(码率升序、同码率按短边、无效码率排末尾)、variants[0]即最低码率档(ASR 取首条最省流量)、仅含 mp4 不含 HLS。download_mode=audio(PR feat: resolve 支持 download_mode=audio(原生音频轨 / Cobalt 透传 / 显式 400) #25)、quality清晰度封顶(PR feat: resolve 支持 quality 清晰度封顶(≤cap 取最高档,显式覆盖平台默认) #26)、Xdata.variants(PR feat: X(Twitter) resolve 透出全部 mp4 variants(码率升序),供下游 ASR 自选低码率流 #28)。逐项对照实现核对:元素 null 口径见
app/services/platforms/twitter.py:52-66与app/api/resolve.py:84-91;排序见twitter.py:56-62。纯文档 PR,生产无需重新部署。