-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
50 lines (50 loc) · 2.64 KB
/
config.example.yaml
File metadata and controls
50 lines (50 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
oauth:
port: "18080" # Port for OAuth server to listen on (default: 18080).
redirect_uri: "http://localhost:18080/callback" # Redirect URI for OAuth server (default: http://localhost:18080/callback).
anilist:
client_id: "1" # AniList client ID.
client_secret: "secret" # AniList client secret.
auth_url: "https://anilist.co/api/v2/oauth/authorize"
token_url: "https://anilist.co/api/v2/oauth/token"
username: "username" # Your AniList username.
myanimelist:
client_id: "1" # MyAnimeList client ID.
client_secret: "secret" # MyAnimeList client secret.
auth_url: "https://myanimelist.net/v1/oauth2/authorize"
token_url: "https://myanimelist.net/v1/oauth2/token"
username: "username" # Your MyAnimeList username.
token_file_path: "" # Absolute path to token file, empty string use default path.
mappings_file_path: "" # Path to manual mappings YAML file, empty string use default path (~/.config/anilist-mal-sync/mappings.yaml).
watch:
interval: "24h" # Sync interval for watch mode (1h-168h). Can be overridden with --interval flag.
# HTTP client timeout for API requests (default: 30s).
# Can be overridden with HTTP_TIMEOUT environment variable.
# Examples: "10s", "30s", "1m", "5m"
http_timeout: "30s"
# ID Mapping: Offline Database (uses anime-offline-database)
offline_database:
enabled: true # Enable offline ID mapping (default: true)
cache_dir: "" # Leave empty for default: ~/.config/anilist-mal-sync/aod-cache
auto_update: true # Auto-update database when new version available
# ID Mapping: ARM API (https://arm.haglund.dev)
arm_api:
enabled: false # Enable ARM API for online ID mapping (default: false)
base_url: "https://arm.haglund.dev" # ARM API base URL
# ID Mapping: Hato API (https://hato.malupdaterosx.moe)
# Supports both anime and manga (unlike ARM API which is anime-only)
hato_api:
enabled: true # Enable Hato API for ID mapping (default: true)
base_url: "https://hato.malupdaterosx.moe" # Hato API base URL
cache_dir: "" # Leave empty for default: ~/.config/anilist-mal-sync/hato-cache
cache_max_age: "720h" # Cache max age (default: 720h / 30 days)
# ID Mapping: Jikan API (https://jikan.moe/)
# Unofficial MyAnimeList API for manga ID mapping
# NOTE: Used only for manga, ignored for anime sync
jikan_api:
enabled: false # Enable Jikan API for manga ID mapping (default: false)
cache_dir: "" # Leave empty for default: ~/.config/anilist-mal-sync/jikan-cache
cache_max_age: "168h" # Cache max age (default: 168h / 7 days)
# Favorites synchronization (optional)
# Syncs favorites between AniList and MAL (requires Jikan API for reading MAL favorites)
favorites:
enabled: false # Enable with --favorites flag or set to true here