Giter Site home page Giter Site logo

[Feat] Please complete title/希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频 about tdl HOT 1 OPEN

13299118606 avatar 13299118606 commented on July 20, 2024
[Feat] Please complete title/希望增添过滤为视频时长,有些视频长度太大,并不需要下,只需要下载短视频

from tdl.

Comments (1)

onlyzyz avatar onlyzyz commented on July 20, 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来下载

from tdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.