Extract environment-backed settings into a dedicated module and switch the aiohttp app to a factory-based bootstrap. Move runtime dependencies into typed app state, tighten CORS defaults, reject sensitive inline yt-dlp options, and harden the container entrypoint validation and ownership flow. Update tests to cover settings validation, app factory behavior, CORS policy, and entrypoint safety checks. |
||
|---|---|---|
| .. | ||
| tests | ||
| config.py | ||
| dl_formats.py | ||
| main.py | ||
| ytdl.py | ||