Files
anime-qize/backend/app/openings_downloader/config.py
mamonov.ep cc11f0b773 Remove Shikimori API, use AnimeThemes only, switch to WebM format
- Remove ShikimoriService, use AnimeThemes API for search
- Replace shikimori_id with animethemes_slug as primary identifier
- Remove FFmpeg MP3 conversion, download WebM directly
- Add .webm support in storage and upload endpoints
- Update frontend to use animethemes_slug

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-12 11:22:46 +03:00

21 lines
540 B
Python

from pydantic_settings import BaseSettings
class DownloaderSettings(BaseSettings):
"""Settings for the Openings Downloader module."""
# S3 Storage limit (100 GB default)
s3_storage_limit_bytes: int = 107_374_182_400 # 100 GB
# Download settings
download_timeout_seconds: int = 300
default_estimated_size_bytes: int = 6_291_456 # 6 MB default for unknown files
class Config:
env_prefix = "DOWNLOADER_"
env_file = ".env"
extra = "ignore"
downloader_settings = DownloaderSettings()