Skip to content

Commit 1f0cb0e

Browse files
committed
Add instructions about api_dump.sqlite
1 parent e872ada commit 1f0cb0e

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

comiclib/scanner/30-importEHdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def dict_factory(cursor, row):
3131
return {key: value for key, value in zip(fields, row)}
3232

3333
class Scanner:
34-
'''Import the dumped e-hentai metadata database (you can download it from https://sukebei.nyaa.si/view/3914574).
34+
'''Import the dumped e-hentai metadata database api_dump.sqlite (you can download it from https://sukebei.nyaa.si/user/gipaf23445).
3535
Currently only support matching by the source URL (from previous scanners).'''
3636

3737
def __init__(self) -> None:

docs/en/docs/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ comiclib
4444
```
4545
It will automatically scan comics in the current working directory. See [Scan Script](scanner.md) for details.
4646

47+
!!! tip "If you use ehentai"
48+
It is strongly recommended to download the ehentai metadata database api_dump.sqlite to the working directory [from here](https://sukebei.nyaa.si/user/gipaf23445) first. For details, see [Scanner](scanner.md#30-importehdbpy).
49+
4750
!!! danger "Do not change the working directory arbitrarily"
4851
The metadata obtained by scanning is stored in the working directory by default, so it should be the same directory the next time.
4952
You can set the metadata database to an absolute path so you don't have to worry about this problem.

docs/zh/docs/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ comiclib
4444
```
4545
它会自动扫描当前工作目录下的漫画,具体细节见[扫描脚本](scanner.md)
4646

47+
!!! tip "如果你使用 ehentai"
48+
强烈建议先[从此](https://sukebei.nyaa.si/user/gipaf23445)下载 ehentai 元数据库 api_dump.sqlite 至工作目录,详见[扫描脚本的说明](scanner.md#30-importehdbpy)
49+
4750
!!! danger "不要随意更改工作目录"
4851
扫描得到的元数据默认存于工作目录,因此下次运行时也要在此目录。
4952
可以设置数据库为一绝对路径,这样就不用担心这一问题。

0 commit comments

Comments
 (0)