How orcalinux/youtube-downloader works
Project type and purpose
• This is a command‐line YouTube video/playlist downloader written in Python.
• It supports interactive prompts (via Rich), graceful Ctrl+C handling, logging, and a Dockerized runtime.
File structure
• Top‐level scripts:
• main.py – entry point, orchestrates prompts and download flow
• downloader.py – core logic for fetching and saving videos/playlists
• utils.py – safe_prompt wrappers, interrupt handlers
• config.py – default paths, quality profiles, logging setup
• DevOps & build files:
• Dockerfile / .dockerignore – container image definition
• Makefile – local venv creation, ffmpeg checks, run targets, docker-run shortcut
• requirements.txt/.in – Python dependencies
• Other: LICENSE, README.md, downloader.log (runtime artifact), .gitignore
README for additional insights
• Interactive modes: single video vs. playlist, quality selection.
• Graceful SIGINT handling with user-friendly messages and log entries.
• Docker support with optional host-volume bind for downloads.
• Logging to console and downloader.log.
• External dependencies: YouTube servers (HTTP), ffmpeg CLI.