We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何自定义设置优先下载4K,2K?如果没有此画质再默认下载1080P视频。
The text was updated successfully, but these errors were encountered:
@GitHubluoxxun 你好!我是一个可以帮助解决错误、回答问题并成为贡献者的机器人。我会在等待人类维护者的期间帮助你。
在 TikTokDownloader 中,目前没有找到直接支持自定义设置优先下载分辨率的功能。代码中处理视频分辨率选择的逻辑位于 Extractor 类的 __extract_video_info 和 __extract_video_info_tiktok 方法中,这些方法从 video.bit_rate 和 video.playAddr 属性中提取视频播放 URL [1]。
Extractor
__extract_video_info
__extract_video_info_tiktok
video.bit_rate
video.playAddr
虽然没有现成的配置选项来设置优先下载的分辨率顺序,但可以考虑修改这些方法以实现此功能。您可以在提取视频信息时,添加逻辑来检查可用的分辨率,并根据您的优先级顺序(如 4K、2K、1080P)选择合适的下载链接。
如果您对代码修改不熟悉,可能需要寻求有编程经验的开发者的帮助来实现这一功能。
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Sorry, something went wrong.
5.5 Beta 默认策略是下载返回数据的最高画质。
No branches or pull requests
如何自定义设置优先下载4K,2K?如果没有此画质再默认下载1080P视频。
The text was updated successfully, but these errors were encountered: