Skip to content
New issue

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

自定义设置优先下载分辨率 #355

Open
GitHubluoxxun opened this issue Dec 19, 2024 · 2 comments
Open

自定义设置优先下载分辨率 #355

GitHubluoxxun opened this issue Dec 19, 2024 · 2 comments

Comments

@GitHubluoxxun
Copy link

如何自定义设置优先下载4K,2K?如果没有此画质再默认下载1080P视频。

Copy link

dosubot bot commented Dec 19, 2024

@GitHubluoxxun 你好!我是一个可以帮助解决错误、回答问题并成为贡献者的机器人。我会在等待人类维护者的期间帮助你。

在 TikTokDownloader 中,目前没有找到直接支持自定义设置优先下载分辨率的功能。代码中处理视频分辨率选择的逻辑位于 Extractor 类的 __extract_video_info__extract_video_info_tiktok 方法中,这些方法从 video.bit_ratevideo.playAddr 属性中提取视频播放 URL [1]

虽然没有现成的配置选项来设置优先下载的分辨率顺序,但可以考虑修改这些方法以实现此功能。您可以在提取视频信息时,添加逻辑来检查可用的分辨率,并根据您的优先级顺序(如 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

@JoeanAmier
Copy link
Owner

5.5 Beta 默认策略是下载返回数据的最高画质。

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

No branches or pull requests

2 participants