Configuration Guide¶
This guide covers all configuration options available in Weeb CLI.
Configuration Storage¶
All configuration is stored in a SQLite database at:
Configuration can be managed through: - Interactive settings menu - Direct database access - Configuration API
Accessing Settings¶
Interactive Mode¶
API Mode¶
from weeb_cli.config import config
# Get value
language = config.get("language")
# Set value
config.set("language", "tr")
Configuration Options¶
General Settings¶
Language¶
Set the UI language.
- Key:
language - Values:
tr,en,de,pl - Default:
None(prompts on first run)
Debug Mode¶
Enable debug logging.
- Key:
debug_mode - Values:
True,False - Default:
False
Show Description¶
Show anime descriptions in search results.
- Key:
show_description - Values:
True,False - Default:
True
Download Settings¶
Download Directory¶
Set where anime files are downloaded.
- Key:
download_dir - Default:
./weeb-downloads
Aria2 Settings¶
Enable Aria2 for fast multi-connection downloads.
- Key:
aria2_enabled - Values:
True,False - Default:
True
Maximum connections per download:
- Key:
aria2_max_connections - Values:
1-32 - Default:
16
yt-dlp Settings¶
Enable yt-dlp for complex stream downloads.
- Key:
ytdlp_enabled - Values:
True,False - Default:
True
Format string for yt-dlp:
- Key:
ytdlp_format - Default:
"bestvideo+bestaudio/best"
Concurrent Downloads¶
Maximum number of simultaneous downloads.
- Key:
max_concurrent_downloads - Values:
1-10 - Default:
3
Retry Settings¶
Maximum retry attempts for failed downloads:
- Key:
download_max_retries - Values:
0-10 - Default:
3
Delay between retries (seconds):
- Key:
download_retry_delay - Values:
1-60 - Default:
10
Provider Settings¶
Default Provider¶
Set default anime source.
- Key:
scraping_source - Values: Provider names (e.g.,
animecix,hianime) - Default:
None(uses first available for language)
Integration Settings¶
Discord Rich Presence¶
Enable Discord integration to show what you're watching.
- Key:
discord_rpc_enabled - Values:
True,False - Default:
True
Keyboard Shortcuts¶
Enable global keyboard shortcuts (experimental).
- Key:
shortcuts_enabled - Values:
True,False - Default:
False
Tracker Settings¶
Tracker credentials are stored securely in the database:
- AniList: OAuth token
- MyAnimeList: OAuth token
- Kitsu: Email and password (hashed)
Configure through Settings → Trackers menu.
Environment Variables¶
WEEB_CLI_CONFIG_DIR¶
Override configuration directory:
WEEB_CLI_DEBUG¶
Enable debug mode:
Configuration Files¶
Database Schema¶
The SQLite database contains these tables:
config: Key-value configurationprogress: Watch progresssearch_history: Search queriesdownload_queue: Download queueexternal_drives: External drive pathsanime_index: Local library indexvirtual_library: Online anime bookmarks
Backup and Restore¶
Backup¶
# Through settings menu
Settings → Backup & Restore → Create Backup
# Manual backup
cp ~/.weeb-cli/weeb.db ~/backup/weeb.db
Restore¶
# Through settings menu
Settings → Backup & Restore → Restore Backup
# Manual restore
cp ~/backup/weeb.db ~/.weeb-cli/weeb.db
Advanced Configuration¶
Custom Cache Directory¶
from weeb_cli.services.cache import CacheManager
from pathlib import Path
cache = CacheManager(Path("/custom/cache/dir"))
Custom Download Manager¶
Troubleshooting¶
Reset Configuration¶
Delete the database to reset all settings:
View Current Configuration¶
from weeb_cli.config import config
# Get all config
all_config = config.db.get_all_config()
for key, value in all_config.items():
print(f"{key}: {value}")
Debug Configuration Issues¶
Enable debug mode to see configuration loading:
Check logs at:
Best Practices¶
- Backup Regularly: Backup your database before major updates
- Use Aria2: Enable Aria2 for faster downloads
- Adjust Concurrency: Lower concurrent downloads on slower connections
- Enable Trackers: Sync progress across devices
- Clean Cache: Periodically clean cache in settings
Next Steps¶
- User Guide: Learn how to use Weeb CLI
- API Reference: Configuration API documentation