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

[Feat] 希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频 #662

Closed
13299118606 opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@13299118606
Copy link

Proposal

希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频

Background

希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频

Workarounds

希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频

@13299118606 13299118606 added the enhancement New feature or request label Jun 26, 2024
@onlyzyz
Copy link

onlyzyz commented Jul 1, 2024

我目前的做法是先导出raw消息的json文件(这个raw里面包含了Duration时长字段)
然后用jq 命令行提示符精简这个json文件(jq ".messages |= map(if .raw.Media.Document.Attributes[0].Duration < 60 then {id: .id, type: .type, file: .file} elif .raw.Media.Document.Attributes[0].Duration > 60 then empty else . end) | {id: .id, messages: .messages}" input.json > output.json)
最用用精简后的json来下载

@iyear iyear closed this as completed Sep 17, 2024
@iyear iyear changed the title [Feat] Please complete title/希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频 [Feat] 希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频 Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants