-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
794 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ko_fi: maikotan | ||
custom: | ||
- https://afdian.net/a/ff14_hamster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# koishi-plugin-booru-e621 | ||
|
||
## 安装 | ||
|
||
1. 在 Koishi 中下载并安装本插件,若你还未安装 [Booru 插件](../index.md),请先安装。 | ||
|
||
## 配置项 | ||
|
||
### 全局设置 | ||
|
||
:::tip | ||
此处的配置项可参考[图源全局设置](../config#图源全局设置) | ||
::: | ||
|
||
### 搜索设置 | ||
|
||
<br> | ||
|
||
#### userAgent | ||
|
||
- 类型:`string` | ||
- 默认值:`Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.37` | ||
|
||
请求时所使用的 User-Agent | ||
|
||
#### endpoint | ||
|
||
- 类型:`string` | ||
- 默认值:`https://e621.net` | ||
|
||
e621/e926 的 API 地址。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# koishi-plugin-booru-local | ||
|
||
超快的本地图源支持 | ||
|
||
## 安装 | ||
|
||
1. 在 Koishi 中下载并安装本插件,若你还未安装 [Booru 插件](../index.md),请先安装。 | ||
|
||
## 配置项 | ||
|
||
### 全局设置 | ||
|
||
:::tip | ||
此处的配置项可参考[图源全局设置](../config#图源全局设置) | ||
::: | ||
|
||
### 图源设置 | ||
|
||
<br> | ||
|
||
#### endpoint | ||
|
||
- 类型: `string[]` | ||
|
||
图源文件夹,支持多个不同的文件夹 | ||
|
||
#### languages | ||
|
||
- 类型: `string[]` | ||
- 默认值: `['zh-CN', 'en']` | ||
|
||
图源支持的语言 | ||
|
||
#### extension | ||
|
||
- 类型: `string[]` | ||
- 默认值: `['.jpg', '.png', '.jpeg', '.gif']` | ||
|
||
支持的图片扩展名 | ||
|
||
#### scraper | ||
|
||
- 类型: `string` | ||
- 默认值: `{filename}-{tag}` | ||
|
||
文件元信息刮削器格式,详见 [刮削器](#刮削器) | ||
|
||
## 刮削器 | ||
|
||
:::tip | ||
该方式需要图片文件名是特定的格式,且为减少边界情况,仅支持使用 `-` 分割 | ||
::: | ||
|
||
这是一个在文件名中指定该图片元信息的方式,以便于插件能够正确的搜索符合需求的图片。 | ||
|
||
### 使用 | ||
|
||
插件设置中 `scraper` 默认值可得出大致的使用方式 | ||
|
||
### 标签 | ||
|
||
#### `#...#` | ||
|
||
- 类型: `string` | ||
- 默认值: `name` | ||
- 示例: `#name#{fliename}-{tag}` | ||
|
||
(仅在开头有效)指定刮削器的工作方式,目前支持以下几种方式: | ||
|
||
1. `name`: 文件名模式 | ||
2. `meta`(WIP): 文件元信息模式(开发中) | ||
|
||
#### `{filename}` | ||
|
||
- 类型: `string` | ||
|
||
> 当 `{filename}` 被放置在最后时,`+` 将失效(即 `{foo}-{filename}+`) | ||
文件名 | ||
|
||
#### `{tag}` | ||
|
||
- 类型: `string[]` | ||
|
||
图片拥有的 tag | ||
|
||
#### `{nsfw}`(WIP) | ||
|
||
- 类型: `boolean | 'furry' | 'guro' | 'shota' | 'bl'` | ||
- 默认值: `nsfw=false` | ||
|
||
限制级图片 | ||
|
||
#### `+` | ||
|
||
忽略后续的内容不作为元信息处理 | ||
|
||
#### `.` | ||
|
||
匹配 `.` 开头的隐藏文件,不设置的情况下将忽略隐藏文件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.