Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
leesei committed Nov 8, 2024
1 parent b7b4285 commit 9a240b2
Show file tree
Hide file tree
Showing 12 changed files with 1,224 additions and 212 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# Change Log

All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.4.0] - 2024-11-08

- update deps
- minor refactoring
- use Prettier instead of Standard

## [1.3.0] - 2017-01-19

- added `-t` for extract

## [1.1.0] - 2016-06-19

### Added

- report error and print help upon subcommand mismatch
- added `-I`/`--ignoreImageNames`

## [1.0.0] - 2016-05-30

### Added

- first release
26 changes: 14 additions & 12 deletions INTERNALS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
- each comic series (`manga`) is stored in a folder named after `mangaId` and each section (`mangaSection`) is stored as a subfolder named after `mangaSectionId`
- each section has a corresponding `.mhr_down_config`, which is a Base64 encoded Java serialization data
- Java serialization data is deserialized with [java.io](https://github.com/node-modules/java.io)
- the comic images are JPEG/PNGs stored with `.` prefix (hidden) and as `.mhr`: `.0.mhr`, `.1.mhr`, etc...
- the comic images file name is stored in `mangaSectionImages`
- each section has a corresponding category, determined by `mangaSectionName`
+ "第\d+话": 連載
+ "第\d卷": 卷
+ others: 番外
- "第\d+话": 連載
- "第\d 卷": 卷
- others: 番外
- `sectionType` is always `1`

E.g.:

```
manhuaren
└── download
Expand All @@ -28,47 +30,47 @@ manhuaren
$ refine-manhuaren info ~/manhuaren/
[佐助写轮眼传] (16464)
[第1话: 宇智波佐助] (176845)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/176845
- /home/leesei/manhuaren/download/佐助写轮眼传/176845
- 34 images
- type[1] verticle[0] way[2]
- prev[-1] next[182758]
[第2话: 鹰…!!] (182758)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/182758
- /home/leesei/manhuaren/download/佐助写轮眼传/182758
- 32 images
- type[1] verticle[0] way[2]
- prev[176845] next[190209]
[第3话: 宇智波鼬!!] (190209)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/190209
- /home/leesei/manhuaren/download/佐助写轮眼传/190209
- 37 images
- type[1] verticle[0] way[2]
- prev[182758] next[193209]
[外传:第1话: JUMP客串版+番外] (193209)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/193209
- /home/leesei/manhuaren/download/佐助写轮眼传/193209
- 5 images
- type[1] verticle[0] way[2]
- prev[190209] next[200873]
[第4话: 漩涡鸣人] (200873)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/200873
- /home/leesei/manhuaren/download/佐助写轮眼传/200873
- 30 images
- type[1] verticle[0] way[2]
- prev[193209] next[206800]
[第5话] (206800)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/206800
- /home/leesei/manhuaren/download/佐助写轮眼传/206800
- 29 images
- type[1] verticle[0] way[2]
- prev[200873] next[217398]
[外传:第2话: 宇智波佐助与瞬人] (217398)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/217398
- /home/leesei/manhuaren/download/佐助写轮眼传/217398
- 9 images
- type[1] verticle[0] way[2]
- prev[206800] next[217999]
[第6话: 鹰的暑假!!] (217999)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/217999
- /home/leesei/manhuaren/download/佐助写轮眼传/217999
- 30 images
- type[1] verticle[0] way[2]
- prev[217398] next[251650]
[特别篇] (251650)
- /home/leesei/manhuaren,1/download/佐助写轮眼传/251650
- /home/leesei/manhuaren/download/佐助写轮眼传/251650
- 3 images
- type[1] verticle[0] way[2]
- prev[217999] next[-2]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 leesei
Copyright (c) 2024 leesei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
# Refine Manhuaren

[![NPM Version][npm-image]][npm-url]

<!-- [![Linux Build][travis-image]][travis-url] -->
<!-- [![Windows Build][appveyor-image]][appveyor-url] -->
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
![David Dependencies][david-dep-image]
![David Dev Dependencies][david-devdep-image]

![NPM Dependencies][npmdep-image] ![GitHub Dev Dependencies][githubdep-image]

[npm-image]: https://img.shields.io/npm/v/refine-manhuaren.svg
[npm-url]: https://npmjs.org/package/refine-manhuaren
[travis-image]: https://img.shields.io/travis/leesei/refine-manhuaren.svg?label=linux
[travis-url]: https://travis-ci.org/leesei/refine-manhuaren
[appveyor-image]: https://img.shields.io/appveyor/ci/leesei/refine-manhuaren/master.svg?label=windows
[appveyor-url]: https://ci.appveyor.com/project/leesei/refine-manhuaren
[david-dep-image]: https://img.shields.io/david/leesei/refine-manhuaren
[david-devdep-image]: https://img.shields.io/david/dev/leesei/refine-manhuaren

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
[npmdep-image]: https://img.shields.io/librariesio/release/npm/refine-manhuaren?label=npm%20deps
[githubdep-image]: https://img.shields.io/librariesio/github/leesei/refine-manhuaren?label=github%20deps

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

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

```sh
npm install -g refine-manhuaren
# or use npx to prevent global install
alias refine-manhuaren 'npx refine-manhuaren'
```

## Usage

Manhuaren stores downloads in `manhuaren/download/`.
The target folder can be changed in settings, e.g.:
- `/storage/emulated/0/`
- `/storage/emulated/0/Android/data/com.ilike.cartoon/`
- `/storage/extSdCard/Android/data/com.ilike.cartoon/`

- `/storage/emulated/0/Android/data/com.mhr.mangamini/files/`
- `/storage/extSdCard/Android/data/com.mhr.mangamini/files/`

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

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

---

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

- we don't have progress with `zipFolder()`
use [Archiver](http://archiverjs.com/docs/) ourself with progress event
- use async/await
20 changes: 11 additions & 9 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/usr/bin/env node
require('yargs')
.usage('Usage: $0 <command> [options]')
require("yargs")
.usage("Usage: $0 <command> [options]")
.version()
.alias('v', 'version')
.alias("v", "version")
.help()
.alias('h', 'help')
.commandDir('./cmds/')
.example('$0 info ~/manhuaren/', 'list comics in folder')
.example('$0 extract ~/manhuaren/ ~/out -z', 'extract comics in ~/manhuaren/ as zip files in ~/out')
.alias("h", "help")
.commandDir("./cmds/")
.example("$0 info ~/manhuaren/", "list comics in folder")
.example(
"$0 extract ~/manhuaren/ ~/out -z",
"extract comics in ~/manhuaren/ as zip files in ~/out",
)
.demand(1)
.wrap(null)
.strict()
.argv;
.strict().argv;
Loading

0 comments on commit 9a240b2

Please sign in to comment.