BGmi / BGmi

[looking for maintainers] BGmi is a cli tool with Web UI for subscribed bangumi.
MIT License
942 stars 26 forks source link

api/index里包括了未下载完的剧集 #51

Closed trim21 closed 6 years ago

trim21 commented 6 years ago

aria2c下载文件的时候如果没有下载完成不会添加一个.part之类的后缀名,然后会被认为下载完了...但是实际上放不了( 其他下载工具不知道有没有同样的问题

RicterZ commented 6 years ago

那就等等(?

trim21 commented 6 years ago

这……

RicterZ commented 6 years ago

因为剧集状态是更新时 update 的,但是下没下载完这个没法做一个统一的 callback

trim21 commented 6 years ago

添加的下载的时候把task id存下来. 每次update的时候像下载工具查询相应的task的状态.

trim21 commented 6 years ago

aria2c是task id, transmission-rpc不太情况是什么情况. 根据hash来应该也可以..

RicterZ commented 6 years ago

但是没有必要再去检查是否下载完呀..

trim21 commented 6 years ago

aria2c支持下载完成的回调哎( transmission本身就有.part 后缀名 感觉fix起来不会很麻烦

trim21 commented 6 years ago

http://aria2.github.io/manual/en/html/aria2c.html#cmdoption-on-bt-download-complete

trim21 commented 6 years ago

还有一点

Usually a control file is deleted once download completed. If aria2 decides that download cannot be resumed(for example, when downloading a file from a HTTP server which doesn’t support resume), a control file is not created.

RicterZ commented 6 years ago

没有普适性,xunlei-lixian 下载是 wget.. transmission我还不知道..

trim21 commented 6 years ago

transmission有.part的后缀名 wget能下bt吗…

trim21 commented 6 years ago

普适性不是个问题吧..针对不同的下载方式有不同的获取本地内容的方法, 把这部分放在services里.

RicterZ commented 6 years ago

xunlei-lixian 是调用 wget 的啊

话说前端切换播放的集数那里挂了…… Trim21 notifications@github.com于2017年10月25日 周三下午6:40写道:

普适性不是个问题吧..针对不同的下载方式有不同的获取本地内容的方法, 把这部分放在services里.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/BGmi/BGmi/issues/51#issuecomment-339288793, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCbx9cKXd1_LsL-v7nSw4zc89HcO9beks5svxAFgaJpZM4QBrkJ .

-- Ricter Z

RicterZ commented 6 years ago

再说等一会儿下载完不就行了吗…