Skip to content

Commit 2847313

Browse files
committed
v0.0.5
1 parent 5494190 commit 2847313

File tree

13 files changed

+80
-38
lines changed

13 files changed

+80
-38
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

33
on:
44
push:
5-
branches:
6-
- master
5+
tags: [ 'v*.*.*' ]
76
workflow_dispatch:
87

98
jobs:

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
English | [中文](https://github.com/comiclib/comiclib/blob/master/README.zh.md)
55

66
# ✨ Features
7-
- 📁 Support [multiple archive formats](https://comiclib.github.io/comiclib/en/supported-formats/)
8-
- 🏷️ Support tag and category metadata import and management
9-
- 🔌 Support [plugins](https://comiclib.github.io/comiclib/en/scanner/)
10-
- 🖼️ Support JPEG XL
7+
- 📁 Support [multiple archive formats](https://comiclib.github.io/comiclib/en/supported-formats/), including folders
8+
- 🏷️ Customizable tag and category metadata import and management with [plugins](https://comiclib.github.io/comiclib/en/scanner/)
119
- 💻 [LANraragi](https://github.com/Difegue/LANraragi)-compatible API
1210
- 📜 scroll / book mode reader ([eHunter](https://github.com/hanFengSan/eHunter))
1311
- 🔁 Tag translation ([EhTagTranslation](https://github.com/EhTagTranslation/Database))
12+
- 🖼️ Support JPEG XL
1413

1514
# 🚀 Installation
1615
Make sure you have 🐍 Python ⩾ 3.9 installed, and install 📚 ComicLib with the following command

README.zh.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
中文 | [English](https://github.com/comiclib/comiclib/blob/master/README.md)
55

66
# ✨ 特点
7-
- 📁 支持[多种存档格式](https://comiclib.github.io/comiclib/zh/supported-formats/)
8-
- 🏷️ 支持tag和分类元数据导入和管理
9-
- 🔌 支持[插件](https://comiclib.github.io/comiclib/zh/scanner/)
10-
- 🖼️ 支持JPEG XL
7+
- 📁 支持[多种存档格式](https://comiclib.github.io/comiclib/zh/supported-formats/),包括文件夹
8+
- 🏷️ 可通过[插件](https://comiclib.github.io/comiclib/zh/scanner/)自定义 tag 和分类元数据的导入和管理
119
- 💻 与 [LANraragi](https://github.com/Difegue/LANraragi) 兼容的API
1210
- 📜 卷轴式/书本式阅读器([eHunter](https://github.com/hanFengSan/eHunter)
1311
- 🔁 标签翻译([EhTagTranslation](https://github.com/EhTagTranslation/Database)
12+
- 🖼️ 支持JPEG XL
1413

1514
# 🚀 安装
1615
确保你安装了 🐍 Python ⩾ 3.9,并通过如下命令安装 📚 ComicLib

comiclib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.0.4"
1+
__version__ = "0.0.5"
22
print(f" >>> ComicLib v{__version__}")
33

44
from .scan import watch, scannow

docs/en/docs/getting-started.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ pip install -U "comiclib[full] @ git+https://github.com/comiclib/comiclib.git"
3636

3737
### Docker (Experimental)
3838

39+
!!! tip inline end "Minimal installation"
40+
Image with tag `v0.0.5` (without `-full` suffix) does not ship the ehentai metadata database, therefore its size is much smaller. You can download the ehentai metadata database to `/userdata` if you need it.
41+
3942
``` bash
4043
docker run -p 8000:8000 \
4144
--mount type=bind,source=<YOUR_COMIC_DIRECTORY_HERE>,target=/root/comiclib \
4245
--mount type=bind,source=<USER_DATA_PATH>,target=/userdata \
43-
ghcr.io/comiclib/comiclib:master
46+
ghcr.io/comiclib/comiclib:v0.0.5-full
4447
```
45-
ComicLib now runs at http://localhost:8000 . If you want to use `api_dump.sqlite`, please put it under `/userdata`.
46-
47-
Or you can use images with `-full` suffix to include `api_dump.sqlite` in the image, however the image size is much larger.
48+
ComicLib now runs at http://localhost:8000 .
4849

4950
P.S.: Monitoring comic folders is disabled by default for Docker currently.
5051

docs/en/docs/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
<p align="center"><sup>Manage, read and share your comic/manga library</sup></p>
33

44
## ✨ Features
5-
- 📁 Support [multiple archive formats](supported-formats.md)
6-
- 🏷️ Support tag and category metadata import and management
7-
- 🔌 Support plugins
8-
- 🖼️ Support JPEG XL
5+
- 📁 Support [multiple archive formats](supported-formats.md), including folders
6+
- 🏷️ Customizable tag and category metadata import and management with [plugins](scanner.md)
97
- 💻 [LANraragi](https://github.com/Difegue/LANraragi)-compatible API
108
- 📜 scroll / book mode reader ([eHunter](https://github.com/hanFengSan/eHunter))
119
- 🔁 Tag translation ([EhTagTranslation](https://github.com/EhTagTranslation/Database))
10+
- 🖼️ Support JPEG XL
1211

1312
👉 [Get started](getting-started.md) now
1413

docs/en/docs/scan&watch.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Details about scanning and watching
2+
3+
## Triggers of scanning
4+
5+
Scanning can be triggered in the following four ways:
6+
7+
* When starting ComicLib, perform a full scan
8+
* After ComicLib is started, if `watch=True`, creation/modification events (only files) are monitored in the directory indicated by the `content` environment variable.
9+
* Manually run the `comicscan` command for a full scan
10+
* Call the `scan` interface to scan a single file/folder, e.g.:
11+
12+
``` python
13+
from comiclib.scan import scan
14+
scan("content/comic/to/scan") # The path should be a subpath to the directory indicated by the `content` environment variable
15+
# For folders, this means trying to treat the folder itself as a comic rather than searching for multiple comics in it
16+
```
17+
18+
Use the same environment variables when executing the above command. If the setting involves relative paths, keep the working directory consistent.
19+
20+
## Scanning process
21+
22+
* All files/folders in the directory indicated by the `content` environment variable are candidates for comics
23+
* Relative paths are an important identifier of comics. This means that if a comic is moved elsewhere, ComicLib will think it is another comic; comics with the same path will be skipped when rescanning, unless `skip_exists=False`; move the entire comic library elsewhere and modify the `content` environment variable to keep the relative relationship unchanged will not need a rescanning.
24+
* The main part of ComicLib is only responsible for traversing the comic library. The judgment of comic files are completed through scanners.
25+
* [Scanner script](scanner.md) is also responsible for metadata analysis and thumbnail extraction of comics.

docs/en/docs/scanner.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# Scanner
22

3-
The main part of ComicLib is only responsible for traversing the comic library. The judgment and analysis of comic files are all completed through scanners.
3+
Please read [Details about scanning and watching](scan&watch.md) first.
44

55
Scanners are divided into [built-in scanners](https://github.com/ComicLib/comiclib/tree/master/comiclib/scanner) and external scanners. All *.py files in the working directory will be loaded as external scanners.
66

77
For each candidate comic file (folder), scanners are executed sequentially in the order of the file name (regardless of whether it is built-in or not) to complete different tasks, like an assembly line.
88

99
You can find some external scanners in the [official repository](https://github.com/ComicLib/scanner), or download those written by others. In addition, you can write it by yourself as long as you know some simple Python.
1010

11-
By default, in addition to scanning once at startup, the comic library will also be monitored at runtime.
12-
Comics that have been scanned into the database will be skipped.
13-
See [Settings](settings.md) to change the behavior.
14-
1511
## Built-in scanners
1612

1713
### 10-zip.py
@@ -52,6 +48,7 @@ Environment variable settings:
5248
| `importEHdb_thumb` | Whether to import thumbnails from it (`True`/`False`) | `True` |
5349
| `importEHdb_matchtitle` | Whether to match based on the title (`True`/`False`/`exact`), `exact` for exact matching, `True` for fuzzy matching | `True` |
5450
| `importEHdb_matchtorrent` | Whether to match based on the torrent file names (`True`/`False`) | `True` |
51+
| `importEHdb_database_URI` | [URI](https://www.sqlite.org/uri.html) of the ehentai metadata database | `file:api_dump.sqlite?mode=rw` |
5552

5653
Matching based on ehentai gid is always enabled.
5754

docs/zh/docs/getting-started.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ pip install -U "comiclib[full] @ git+https://github.com/comiclib/comiclib.git"
3636

3737
### Docker(试验性)
3838

39+
!!! tip inline end "最小安装"
40+
使用 tag `v0.0.5`(没有`-full`后缀)的镜像不自带 ehentai 元数据库,其大小会小很多。可手动下载 ehentai 元数据库并将其放在 `/userdata` 下。
41+
3942
``` bash
4043
docker run -p 8000:8000 \
4144
--mount type=bind,source=你的漫画库路径,target=/root/comiclib \
42-
--mount type=bind,source=你的数据路径,target=/userdata \
43-
ghcr.io/comiclib/comiclib:master
45+
--mount type=bind,source=将要存放数据的路径,target=/userdata \
46+
ghcr.io/comiclib/comiclib:v0.0.5-full
4447
```
45-
现在 ComicLib 运行在了 http://localhost:8000 。如果你想要使用 `api_dump.sqlite`, 请手动下载并将其放在 `/userdata` 下。
4648

47-
或者你可以使用带有 `-full` 后缀的镜像,其中包含了 `api_dump.sqlite`,但镜像大小会大很多
49+
现在 ComicLib 运行在了 http://localhost:8000
4850

4951
注:目前监视漫画文件夹默认对 Docker 禁用。
5052

docs/zh/docs/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
<p align="center"><sup>管理、阅读、分享你的漫画库</sup></p>
33

44
## ✨ 特点
5-
- 📁 支持[多种存档格式](supported-formats.md)
6-
- 🏷️ 支持 tag 和分类元数据导入和管理
7-
- 🔌 支持[插件](scanner.md)
8-
- 🖼️ 支持 JPEG XL
5+
- 📁 支持[多种存档格式](supported-formats.md),包括文件夹
6+
- 🏷️ 可通过[插件](scanner.md)支持 tag 和分类元数据导入和管理
97
- 💻 与 [LANraragi](https://github.com/Difegue/LANraragi) 兼容的API
108
- 📜 卷轴式/书本式阅读器([eHunter](https://github.com/hanFengSan/eHunter)
119
- 🔁 标签翻译([EhTagTranslation](https://github.com/EhTagTranslation/Database)
10+
- 🖼️ 支持 JPEG XL
1211

1312
马上 👉 [开始使用](getting-started.md)
1413

0 commit comments

Comments
 (0)