Comments (8)
跟流式关系不大……最终都要拿到 Buffer 生成 Blob 然后才能下载,避免不了要消耗大量内存的
没办法给一个 Stream 给浏览器下载
Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用
from nhentai-helper.
Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用
喜报:实现了流式压缩与下载
悲报:在 firefox 上由于不明原因无法使用
通过设置 network.cookie.cookieBehavior
为 4
解决后
from nhentai-helper.
可能是内存不足
不过按理来说一般人应该够的吧……
我用 chrome 下这种200多页的单行本没有问题,峰值大概也就 2200MB
from nhentai-helper.
200+页的下过很多,但这个100%崩溃,试了几十次了,你试试呢?
是在compressing阶段崩溃的。
from nhentai-helper.
chrome 试过了没事,firefox 确实会崩
可能是因为这个单行本真的很大,每张图都有 3MB 左右,整本有 700+MB,现在一般 200+ 页的也就 100+MB
一共 224 张,压到快结束就崩了,这个应该是 firefox 的问题,我这边就无能为力了……
from nhentai-helper.
不是很懂js,有支持流式压缩的js库嘛
from nhentai-helper.
评价为:寄
from nhentai-helper.
Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用
喜报:实现了流式压缩与下载
悲报:在 firefox 上由于不明原因无法使用
通过设置
network.cookie.cookieBehavior
为4
解决后
阿这,简直太搞笑了。没什么用的功能增加了哈哈哈。
from nhentai-helper.
Related Issues (20)
- 可以设置并行下载压缩的数量吗? HOT 8
- 您好 能否提供下載torrent 的功能? HOT 1
- 能否将 记录已下载的本子的本地文件 转移到不同电脑上? HOT 4
- Imhentai support HOT 1
- 您好为什么没有效果? HOT 2
- Page download. HOT 10
- 关于镜像站的一些问题 HOT 1
- 能否增加 自动取消下载过的本子 的识别范围 HOT 3
- Option to add artist names to filename HOT 6
- i.nhentai.net:443下载缓慢 HOT 3
- 这是一个增加功能建议,我希望压缩时可以增加tag信息 HOT 2
- crash while metadata contains "&"
- how to setup HOT 2
- [Feature Request] 请问关于语言的Filter HOT 2
- Script suddenly stopped working HOT 12
- Language filter appearance is broken on mobile. HOT 1
- Add or Include Sleazy Fork link for Installation (no login required)
- 忽略按钮 hover 再显示
- [Feature Request] Replace a specific special character with a custom valid character HOT 2
- [Feature Request] Display the total number of pages on the thumbnail with the download button. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhentai-helper.