Comments (9)
I think it'd be useful to have Seiga support for batch downloading
yes please!
it would be usefull to download 1 page manga with many chapters like this one
http://seiga.nicovideo.jp/comic/36993
from nndownload.
Nico Seiga links? A few downloaders I know support individual images and comics. I'm not sure if any support manga. Take a look at these. I'm not against adding support but if someone else has solved it then I'd like to prevent duplicate work.
from nndownload.
how about this:
http://seiga.nicovideo.jp/watch/mg173049
and actually i've tried this:
https://github.com/taba256/nicoseiga-download
but it didnt work since it didnt updated anymore
btw, only unofficial & fanmade manga can be downloaded.
from nndownload.
Are you sure it doesn't work? I only tested it in Firefox (68.0) with Tampermonkey (4.9.5941) but I got it to work with both official (DRM protected) and fan manga. Example links:
In any case, I think it'd be useful to have Seiga support for batch downloading, including for individual images. I'll be working on support for this if you can't get it to work, so please wait warmly!
from nndownload.
Official manga use a light form of DRM, decryption is controlled by ImageLoader in http://seiga.nicovideo.jp/js/manga/common.min.js. The data-original
attribute in img.lazyload
classes contains a binary encrypted form of each image which then gets decrypted into a Base64 string. Other manga can be retrieved without modification from the attribute URL.
var o = this.getKeyFromUrl(e);
t.open('GET', e, !0),
t.responseType = 'arraybuffer',
t.onload = function (t) {
var i = new Uint8Array(this.response);
'' !== o && (i = r.decrypt(i, o));
var s = r.getDataType(i),
l = r.toBase64String(i),
u = 'data:image/' + s + ';base64,' + l;
this.getKeyFromUrl = function (t) {
var e = t.match('/image/([a-z0-9_]+)/');
if (null === e) return '';
var r = e[1].split('_'), n = r[0];
return n
},
this.decrypt = function (t, e) {
var r, n = [], a = 8;
for (r = 0; r < a; r++) n.push(parseInt(e.substr(2 * r, 2), 16));
for (r = 0; r < t.length; r++) t[r] = t[r] ^ n[r % a];
return t
},
this.toBase64String = function (t) {
var e, r = '', n = t.length;
for (e = 0; e < n; e++) r += String.fromCharCode(t[e]);
return Base64.btoa(r)
},
this.getDataType = function (t) {
var e = null, r = t.length;
return 255 === t[0] && 216 === t[1] && 255 === t[r - 2] && 217 === t[r - 1] ? e = 'jpg' : 137 === t[0] && 80 === t[1] && 78 === t[2] && 71 === t[3] ? e = 'png' : 71 === t[0] && 73 === t[1] && 70 === t[2] && 56 === t[3] && (e = 'gif'), e
}
from nndownload.
Seiga images can be retrieved at http://seiga.nicovideo.jp/image/source/<image_id> which redirects to a page using the full image.
from nndownload.
hm... thats odd,
i'm using firefox 69 with many settings (to disable telemetry, etc) maybe i'll reset my browser and try again.
from nndownload.
confirmed, it works...
from nndownload.
You can now download individual chapters, full manga, and images. I'll be working on support for downloading everything from a user/uploader.
from nndownload.
Related Issues (20)
- Support new DMS video format HOT 5
- 如何只下载audio,不下载video?
- Comment download stopped working. HOT 2
- Download comments for premium videos. HOT 9
- the exe window auto closed after logged in HOT 1
- Premium Videos Support HOT 9
- Economy mode was eliminated HOT 1
- Add native HLS downloader
- Add --no-audio and --no-video
- Pass proxy in on DMS downloads HOT 3
- ffmpeg progress is broken on Windows
- Build Windows binaries with action HOT 5
- ModuleNotFoundError: No module named 'ffmpeg_dl' HOT 3
- IndexError: list index out of range HOT 4
- "FormatNotAvailableException" and can't download HOT 15
- failed to download anime. HOT 2
- DMS won't download non-highest quality even if `-f` is not used HOT 1
- Enable linter and editor rules
- Native HLS downloader video and audio progress bars not hitting 100% correctly HOT 2
- Exceptions can't be raise HOT 8
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 nndownload.