Skip to content

Commit 9a240b2

Browse files
committedNov 8, 2024·
update deps
1 parent b7b4285 commit 9a240b2

12 files changed

+1224
-212
lines changed
 

‎CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
# Change Log
2+
23
All notable changes to this project will be documented in this file.
34
This project adheres to [Semantic Versioning](http://semver.org/).
45

6+
## [1.4.0] - 2024-11-08
7+
8+
- update deps
9+
- minor refactoring
10+
- use Prettier instead of Standard
11+
12+
## [1.3.0] - 2017-01-19
13+
14+
- added `-t` for extract
15+
516
## [1.1.0] - 2016-06-19
17+
618
### Added
19+
720
- report error and print help upon subcommand mismatch
821
- added `-I`/`--ignoreImageNames`
922

1023
## [1.0.0] - 2016-05-30
24+
1125
### Added
26+
1227
- first release

‎INTERNALS.md

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
- each comic series (`manga`) is stored in a folder named after `mangaId` and each section (`mangaSection`) is stored as a subfolder named after `mangaSectionId`
22
- each section has a corresponding `.mhr_down_config`, which is a Base64 encoded Java serialization data
3+
- Java serialization data is deserialized with [java.io](https://github.com/node-modules/java.io)
34
- the comic images are JPEG/PNGs stored with `.` prefix (hidden) and as `.mhr`: `.0.mhr`, `.1.mhr`, etc...
45
- the comic images file name is stored in `mangaSectionImages`
56
- each section has a corresponding category, determined by `mangaSectionName`
6-
+ "第\d+话": 連載
7-
+ "第\d卷": 卷
8-
+ others: 番外
7+
- "第\d+话": 連載
8+
- "第\d 卷": 卷
9+
- others: 番外
910
- `sectionType` is always `1`
1011

1112
E.g.:
13+
1214
```
1315
manhuaren
1416
└── download
@@ -28,47 +30,47 @@ manhuaren
2830
$ refine-manhuaren info ~/manhuaren/
2931
[佐助写轮眼传] (16464)
3032
[第1话: 宇智波佐助] (176845)
31-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/176845
33+
- /home/leesei/manhuaren/download/佐助写轮眼传/176845
3234
- 34 images
3335
- type[1] verticle[0] way[2]
3436
- prev[-1] next[182758]
3537
[第2话: 鹰…!!] (182758)
36-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/182758
38+
- /home/leesei/manhuaren/download/佐助写轮眼传/182758
3739
- 32 images
3840
- type[1] verticle[0] way[2]
3941
- prev[176845] next[190209]
4042
[第3话: 宇智波鼬!!] (190209)
41-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/190209
43+
- /home/leesei/manhuaren/download/佐助写轮眼传/190209
4244
- 37 images
4345
- type[1] verticle[0] way[2]
4446
- prev[182758] next[193209]
4547
[外传:第1话: JUMP客串版+番外] (193209)
46-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/193209
48+
- /home/leesei/manhuaren/download/佐助写轮眼传/193209
4749
- 5 images
4850
- type[1] verticle[0] way[2]
4951
- prev[190209] next[200873]
5052
[第4话: 漩涡鸣人] (200873)
51-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/200873
53+
- /home/leesei/manhuaren/download/佐助写轮眼传/200873
5254
- 30 images
5355
- type[1] verticle[0] way[2]
5456
- prev[193209] next[206800]
5557
[第5话] (206800)
56-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/206800
58+
- /home/leesei/manhuaren/download/佐助写轮眼传/206800
5759
- 29 images
5860
- type[1] verticle[0] way[2]
5961
- prev[200873] next[217398]
6062
[外传:第2话: 宇智波佐助与瞬人] (217398)
61-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/217398
63+
- /home/leesei/manhuaren/download/佐助写轮眼传/217398
6264
- 9 images
6365
- type[1] verticle[0] way[2]
6466
- prev[206800] next[217999]
6567
[第6话: 鹰的暑假!!] (217999)
66-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/217999
68+
- /home/leesei/manhuaren/download/佐助写轮眼传/217999
6769
- 30 images
6870
- type[1] verticle[0] way[2]
6971
- prev[217398] next[251650]
7072
[特别篇] (251650)
71-
- /home/leesei/manhuaren,1/download/佐助写轮眼传/251650
73+
- /home/leesei/manhuaren/download/佐助写轮眼传/251650
7274
- 3 images
7375
- type[1] verticle[0] way[2]
7476
- prev[217999] next[-2]

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 leesei
3+
Copyright (c) 2024 leesei
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
# Refine Manhuaren
22

33
[![NPM Version][npm-image]][npm-url]
4+
45
<!-- [![Linux Build][travis-image]][travis-url] -->
56
<!-- [![Windows Build][appveyor-image]][appveyor-url] -->
6-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
7-
![David Dependencies][david-dep-image]
8-
![David Dev Dependencies][david-devdep-image]
7+
8+
![NPM Dependencies][npmdep-image] ![GitHub Dev Dependencies][githubdep-image]
99

1010
[npm-image]: https://img.shields.io/npm/v/refine-manhuaren.svg
1111
[npm-url]: https://npmjs.org/package/refine-manhuaren
1212
[travis-image]: https://img.shields.io/travis/leesei/refine-manhuaren.svg?label=linux
1313
[travis-url]: https://travis-ci.org/leesei/refine-manhuaren
1414
[appveyor-image]: https://img.shields.io/appveyor/ci/leesei/refine-manhuaren/master.svg?label=windows
1515
[appveyor-url]: https://ci.appveyor.com/project/leesei/refine-manhuaren
16-
[david-dep-image]: https://img.shields.io/david/leesei/refine-manhuaren
17-
[david-devdep-image]: https://img.shields.io/david/dev/leesei/refine-manhuaren
18-
19-
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
16+
[npmdep-image]: https://img.shields.io/librariesio/release/npm/refine-manhuaren?label=npm%20deps
17+
[githubdep-image]: https://img.shields.io/librariesio/github/leesei/refine-manhuaren?label=github%20deps
2018

2119
Refine Manhuaren is an extractor to extract Manhuaren comics, inspired by [gumblex/refine-buka](https://github.com/gumblex/refine-buka).
2220

@@ -26,15 +24,17 @@ Refine Manhuaren is an extractor to extract Manhuaren comics, inspired by [gumbl
2624

2725
```sh
2826
npm install -g refine-manhuaren
27+
# or use npx to prevent global install
28+
alias refine-manhuaren 'npx refine-manhuaren'
2929
```
3030

3131
## Usage
3232

3333
Manhuaren stores downloads in `manhuaren/download/`.
3434
The target folder can be changed in settings, e.g.:
35-
- `/storage/emulated/0/`
36-
- `/storage/emulated/0/Android/data/com.ilike.cartoon/`
37-
- `/storage/extSdCard/Android/data/com.ilike.cartoon/`
35+
36+
- `/storage/emulated/0/Android/data/com.mhr.mangamini/files/`
37+
- `/storage/extSdCard/Android/data/com.mhr.mangamini/files/`
3838

3939
Copy the `manhuaren` folder to your PC, say `~/manhuaren`.
4040

@@ -56,15 +56,15 @@ refine-manhuaren info ~/manhuaren/ -j > downloaded.json
5656
refine-manhuaren extract ~/manhuaren/ ~/out
5757
# also work for subtree
5858
refine-manhuaren extract ~/manhuaren/download/16464 -z
59-
# some manga's file names in chapter info is not sorted (e.g. 3x3 Eyes)
59+
# some manga's file names in section info is not sorted (e.g. 3x3 Eyes)
6060
# use `-I` to ignore it and rename files using the original index
6161
refine-manhuaren extract ~/manhuaren/download/1210 -I
6262
```
6363

6464
---
6565

66-
TODO:
67-
we don't have progress with `zipFolder()`
68-
check `zipFolder()`'s source and use [Archiver](http://archiverjs.com/docs/) ourself
69-
Or check if [zip-local](https://github.com/Mostafa-Samir/zip-local) supports progress
66+
TODO:
7067

68+
- we don't have progress with `zipFolder()`
69+
use [Archiver](http://archiverjs.com/docs/) ourself with progress event
70+
- use async/await

‎cli.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env node
2-
require('yargs')
3-
.usage('Usage: $0 <command> [options]')
2+
require("yargs")
3+
.usage("Usage: $0 <command> [options]")
44
.version()
5-
.alias('v', 'version')
5+
.alias("v", "version")
66
.help()
7-
.alias('h', 'help')
8-
.commandDir('./cmds/')
9-
.example('$0 info ~/manhuaren/', 'list comics in folder')
10-
.example('$0 extract ~/manhuaren/ ~/out -z', 'extract comics in ~/manhuaren/ as zip files in ~/out')
7+
.alias("h", "help")
8+
.commandDir("./cmds/")
9+
.example("$0 info ~/manhuaren/", "list comics in folder")
10+
.example(
11+
"$0 extract ~/manhuaren/ ~/out -z",
12+
"extract comics in ~/manhuaren/ as zip files in ~/out",
13+
)
1114
.demand(1)
1215
.wrap(null)
13-
.strict()
14-
.argv;
16+
.strict().argv;

0 commit comments

Comments
 (0)
Please sign in to comment.