Skip to content

Commit ab9cbef

Browse files
committed
up
1 parent 4afa655 commit ab9cbef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ plugins = [
124124
| **数据源配置** | | | |
125125
| `SAUCENAO_API_KEY` | $${\textsf{\color{red}是}}$$ || SauceNAO 的 API KEY,在 [这里](https://saucenao.com/user.php) 注册后到 [这里](https://saucenao.com/user.php?page=search-api) 获取<br />如果 SauceNAO 的 API 使用触发当日上限,请同时换新的 API Key 和代理节点,仅换其中一个没有意义。 |
126126
| `ASCII2D_BASE_URL` || `https://ascii2d.net` | Ascii2D Base URL \([#139](https://github.com/lgc-NB2Dev/YetAnotherPicSearch/issues/139)\) |
127+
| `HIDE_ASCII2D_BASE_URL` || `True` | 当自定义 Ascii2D Base URL 后,是否将自定义的 URL 替换回官方 URL |
127128
| `EXHENTAI_COOKIES` || `None` | ExHentai 的 Cookies,没有的情况下自动改用 E-Hentai 搜图,获取方式参考 请参考 [PicImageSearch 文档](https://pic-image-search.kituin.fun/wiki/picimagesearch/E-hentai/DataStructure/#cookies%E8%8E%B7%E5%8F%96) |
128129
| `NHENTAI_USERAGENT` || `None` | 用来绕过 NHentai Cloudflare 拦截的 User Agent,配置后在 E-Hentai 标题搜索无结果时会自动调用 NHentai 标题搜索<br />先用配置的 `PROXY` 做代理,使用浏览器访问 NHentai 通过 CloudFlare 检测后,获取 UA 和 Cookies 填到对应配置项 |
129130
| `NHENTAI_COOKIES` || `None` | 用来绕过 NHentai Cloudflare 拦截的 Cookies,同上 |

YetAnotherPicSearch/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ConfigModel(BaseModel):
1212

1313
saucenao_api_key: str
1414
ascii2d_base_url: Annotated[str, HttpUrl] = "https://ascii2d.net"
15-
hide_ascii2d_base_url: bool = False
15+
hide_ascii2d_base_url: bool = True
1616
exhentai_cookies: Optional[str] = None
1717
nhentai_useragent: Optional[str] = None
1818
nhentai_cookies: Optional[str] = None

0 commit comments

Comments
 (0)