Git Product home page Git Product logo

Comments (4)

vooidzero avatar vooidzero commented on May 14, 2024 1

给代码写文档,那是一件相当痛苦的事情,我可不想去写。而且我大抵是不会接受 Pull Request。

要继续开发加 feature(比如 dash fmp4 下载)的话,我也肯定要重构一些东西。


目前的代码,我就给个宏观结构描述吧:

window

TaskCellWidget 包含 AbstractDownloadTask(DownloadTask.h/cpp)对象。各种 DownloadTask 类实现具体下载以及可能的 remux 任务(目前只有直播要 remux,相关内容在 Flv.h/cpp),DownloadTask 提供一些公共接口来获取标题、下载进度等信息。


输入链接的解析在 Extractor.h/cpp,从链接中提取出视频 ID 号,然后获取里面包含的所有视频,如果有付费/大会员,还要查询用户是否有权限。解析成功后弹出 DownloadDialog 对话框让用户选择要下载的视频和下载位置。因为获取视频可用画质的 api 是单个视频的,而极端情况下如柯南会包含上千个视频,全部去请求不现实,所以在 DownloadDialog 里做了个画质选择的交互。

from b23downloader.

blockclover avatar blockclover commented on May 14, 2024

可以写一个下载YouTube的吗

from b23downloader.

HydrangeaPurple avatar HydrangeaPurple commented on May 14, 2024

可以写一个下载YouTube的吗

用"4k video downloader"

from b23downloader.

blockclover avatar blockclover commented on May 14, 2024

from b23downloader.

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.