2022-03-08 08:06:22 +00:00
# AniDB Attributes
2022-09-19 20:46:54 +00:00
Configuring [AniDB ](https://anidb.net/ ) is optional but can unlock more features from the site
Using `client` and `version` allows access to AniDB Library Operations.
Using `username` and `password` allows you to access mature content with AniDB Builders.
2022-03-08 08:06:22 +00:00
**All AniDB Builders still work without this, they will just not have mature content**
2023-11-15 11:44:43 +00:00
An `anidb` mapping is in the root of the config file.
2022-03-08 08:06:22 +00:00
Below is a `anidb` mapping example and the full set of attributes:
```yaml
anidb:
2022-09-19 20:46:54 +00:00
client: #######
version: 1
language: en
cache_expiration: 60
2022-03-08 08:06:22 +00:00
username: ######
password: ######
```
2023-12-31 16:45:00 +00:00
| Attribute | Allowed Values | Default | Required |
|:-------------------|:----------------------------------------------------------------------------------------------|:--------|:----------------------------------------:|
2023-11-06 20:38:00 +00:00
| `client` | AniDB Client Name | N/A | :fontawesome-solid-circle-xmark:{ .red } |
| `version` | AniDB Client Version | N/A | :fontawesome-solid-circle-xmark:{ .red } |
| `language` | [ISO 639-1 Code ](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ) of the User Language. | en | :fontawesome-solid-circle-xmark:{ .red } |
| `cache_expiration` | Number of days before each cache mapping expires and has to be re-cached. | 60 | :fontawesome-solid-circle-xmark:{ .red } |
| `username` | AniDB Username | N/A | :fontawesome-solid-circle-xmark:{ .red } |
| `password` | AniDB Password | N/A | :fontawesome-solid-circle-xmark:{ .red } |
2022-09-19 20:46:54 +00:00
2023-11-15 11:44:43 +00:00
To get a Client Name and Client Version please follow the following steps.
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
1. Login to [AniDB ](https://anidb.net/ )
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
2. Go to you [API Client Page ](https://anidb.net/software/add ) and go to the `Add New Project` Tab.
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
![AniDB Add Project ](images/anidb-1.png )
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
3. Fill in the Project Name with whatever name you want and then hit `+ Add Project` . The rest of the settings don't
matter.
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
4. After you've added the project you should end up on the Projects Page. If not go back to the
[API Client Page ](https://anidb.net/software/add ) and click your projects name.
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
5. Once you're on the project page click `Add Client` in the top right.
2022-09-19 20:46:54 +00:00
2023-12-31 16:45:00 +00:00
![AniDB Add Client ](images/anidb-2.png )
6. Come up with and enter a unique to AniDB Client Name
7. Select `HTTP API` in the API Dropdown
8. Put `1` for Version.
![AniDB Client Page ](images/anidb-3.png )
9. Put the Client Name and Client Version you just created in your config.yml as `client` and `version` respectively.
2022-09-19 20:46:54 +00:00
2023-11-15 11:44:43 +00:00
```yaml
anidb:
client: UniqueAniDBName
version: 1
language: en
cache_expiration: 60
```