diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | files/help.txt.default | 1 | ||||
| -rw-r--r-- | submodules/command_hash.sh | 2 | ||||
| -rw-r--r-- | units/ib_authconfig.sh | 2 | ||||
| -rw-r--r-- | units/ib_config.sh | 17 | ||||
| -rw-r--r-- | units/ib_name.sh | 2 |
6 files changed, 18 insertions, 7 deletions
@@ -159,6 +159,7 @@ Caching modes: ### Supported Image Boards +* `a` - [Safebooru](https://safebooru.donmai.us/) (auth) (lpt) * `d` - [Danbooru](https://danbooru.donmai.us/) (auth) (lpt) * `g` - [Gelbooru](https://gelbooru.com/) (auth) (pt) * `i` - [Idol Complex](https://idol.sankakucomplex.com/) (auth) (lpt) diff --git a/files/help.txt.default b/files/help.txt.default index cd1b8cc..eb93ef6 100644 --- a/files/help.txt.default +++ b/files/help.txt.default @@ -60,6 +60,7 @@ <code>short p d -mq ringouulu</code> <b>Supported Image Boards:</b> +<code>a</code> - <a href="https://safebooru.donmai.us">Safebooru</a> (auth) (lpt) <code>d</code> - <a href="https://danbooru.donmai.us">Danbooru</a> (auth) (lpt) <code>g</code> - <a href="https://gelbooru.com">Gelbooru</a> (auth) (pt) <code>i</code> - <a href="https://idol.sankakucomplex.com">Idol Complex</a> (auth) (lpt) diff --git a/submodules/command_hash.sh b/submodules/command_hash.sh index 64f53a1..c12093b 100644 --- a/submodules/command_hash.sh +++ b/submodules/command_hash.sh @@ -2,7 +2,7 @@ # Copyright (C) 2024-2025 Danil Lisin # SPDX-License-Identifier: Apache-2.0 -board_table="d g i k s y" +board_table="a d g i k s y" if [ -n "${1}" ] then diff --git a/units/ib_authconfig.sh b/units/ib_authconfig.sh index 1e5b855..31dc7ba 100644 --- a/units/ib_authconfig.sh +++ b/units/ib_authconfig.sh @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 case "${ib_board}" in - (d) + (a|d) ib_auth="https://danbooru.donmai.us/profile.json" ib_config="danbooru" ib_authorization="Authorization: Baisc" diff --git a/units/ib_config.sh b/units/ib_config.sh index 0c58865..fcd0bcf 100644 --- a/units/ib_config.sh +++ b/units/ib_config.sh @@ -7,10 +7,19 @@ ib_error_width=536 ib_error_height=516 case "${ib_board}" in - (d) - ib_name="Danbooru" - ib_api="https://danbooru.donmai.us" - ib_url="https://danbooru.donmai.us" + (a|d) + case "${ib_board}" in + (a) + ib_name="Safebooru" + ib_api="https://safebooru.donmai.us" + ib_url="https://safebooru.donmai.us" + ;; + (d) + ib_name="Danbooru" + ib_api="https://danbooru.donmai.us" + ib_url="https://danbooru.donmai.us" + ;; + esac ib_ratings=" g general diff --git a/units/ib_name.sh b/units/ib_name.sh index 00c59ee..cd5f180 100644 --- a/units/ib_name.sh +++ b/units/ib_name.sh @@ -2,7 +2,7 @@ # Copyright (C) 2024-2025 Danil Lisin # SPDX-License-Identifier: Apache-2.0 -board_table="d g i k s y" +board_table="a d g i k s y" if [ -z "${1}" ] then |
