Git Product home page Git Product logo

Comments (8)

SYFH avatar SYFH commented on July 17, 2024

emmm 文件类型是没有上限的, 而且您这个需求偏向针对性, 所以最好是自己进行管理, 而不是依赖下载库来实现, 比如 key: url, value: type 这样储存信息.
也许以后我会添加诸如按 tag 进行分组操作 的功能, 但优先级并不高.

from fkdownloader.

huanglins avatar huanglins commented on July 17, 2024

+1
比如 m3u8 文件,这种单个任务是很多单个 request 组成的。

from fkdownloader.

SYFH avatar SYFH commented on July 17, 2024

0.0.15 版本将 tag 相关的操作添加上了, 但目前只有最简单的操作, -[FKTask addTags:], -[FKTask removeTags:], -[FKDownloadManager acquireWithTag:]FKTaskInfoTags key.
各位还有什么想要添加的基本操作吗?
现在大部分的功能快要基本完善了, 完善后就是 1.0.0 版本了

from fkdownloader.

huanglins avatar huanglins commented on July 17, 2024
  1. task 可以单独设置全路径
  2. tags 的汇总状态回调

from fkdownloader.

SYFH avatar SYFH commented on July 17, 2024
  1. 单独设置恢复数据保存路径和文件保存路径, 这个需求没毛病
  2. tags 的汇总状态回调可以详细说一下吗?

from fkdownloader.

huanglins avatar huanglins commented on July 17, 2024

汇总的话可能和当前添加 tags 的思路不一样。比如我有 10 task 他们是一个组的,类似于 taskGroup,然后这个 taskGroup 拥有和 task 一样的状态回调,只不过回调的是这10个一起的汇总信息。FKDownloadManager 里面不是有 progress 吗,总的进度,我看了下好像还没实现,跟这个汇总是一个意思。

from fkdownloader.

SYFH avatar SYFH commented on July 17, 2024

总任务进度的实现有瑕疵, 已经修复了, 并且添加了一个总任务进度的 Blok.
0.0.16 版本已经支持获取一组任务的总进度了, 可以使用 [[FKDownloadManager manager] acquireWithTag:@"tag"].groupProgress 这种方法获取组任务的 NSProgress.
唯一的缺点就是文件总大小无法在第一时间全部获取, 只有进行过的任务才可获取准确的 Conten-Length.

from fkdownloader.

SYFH avatar SYFH commented on July 17, 2024

0.0.17 版本把组进度不准确的问题解决了, 方案是使用固定大小与完成百分比计算的, 即使有的任务 Conten-Length 为 0 也可以正确包含并计算了

from fkdownloader.

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.