How lucksander/media-downloader works
Media Downloader is a terminal application for downloading a user-provided media URL as MP4 video, MP3 audio, or FLAC audio. The workflow gathers a format and, where applicable, a quality choice, configures yt-dlp, reports progress, and saves output under downloads/. The single runtime file combines these stages rather than separating them into modules. README documents FFmpeg-backed merging and conversion; the source configures those postprocessors, but does not show their internal execution.
Main entry points: main.py Download options
Components 11
Terminal interaction
- Format menu
main.py - Video quality
main.py - MP3 quality
main.py - URL input
main.py
Download and conversion
- Download options
main.py - yt-dlp engine
- FFmpeg processing
- Progress display
main.py - Error handling
main.py
Output handling
- Downloads folder
main.py
Other components
- User
Connections 14
- User → Format menu: chooses format
main.py - Format menu → Video quality: selects video
main.py - Format menu → MP3 quality: selects MP3
main.py - User → Video quality: chooses quality
main.py - User → MP3 quality: chooses bitrate
main.py - User → URL input: provides URL
main.py - Video quality → Download options: sets format
main.py - MP3 quality → Download options: sets bitrate
main.py - URL input → yt-dlp engine: download input
main.py - Download options → yt-dlp engine: configures
main.py - yt-dlp engine → Progress display: calls hook
main.py - Download options → FFmpeg processing: requests processing
main.py - yt-dlp engine → Downloads folder: saves output
main.py - yt-dlp engine → Error handling: runs within
main.py