How cyprien63/youtube-download works
YouTube Downloader is a desktop application: users enter a YouTube URL, inspect an optional preview, choose destination and media options, then start or cancel a download and follow its progress. The GUI delegates download work to a manager, which uses yt-dlp with pytubefix as a fallback and FFmpeg for conversion and metadata work. Settings and downloaded files are local state; the app also offers a development-mode update check. Some downloader and GUI implementation is excerpted only, so uncertain internal call paths are omitted.
Main entry points: downloader.py Download manager · gui.py Downloader GUI · main.py Application entry · ffmpeg_manager.py FFmpeg manager
Components 14
Desktop interface
- Application entry
main.py - Downloader GUI
src/gui.py - User settings
src/gui.py - Video preview
src/gui.py
Download workflow
- Download manager
src/downloader.py - yt-dlp
- pytubefix fallback
- Downloaded media
Runtime support
- FFmpeg manager
src/ffmpeg_manager.py - GUI logger
src/utils.py
Other components
- User
- YouTube
- FFmpeg
- GitHub repository
Connections 18
- User → Application entry: launches
- Application entry → Downloader GUI: starts
- User → Downloader GUI: enters options
- Downloader GUI → User settings: reads and writes
- Downloader GUI → Video preview: requests preview
- Video preview → yt-dlp: fetches metadata
- yt-dlp → YouTube: requests video data
- Downloader GUI → Download manager: starts or cancels
- Download manager → yt-dlp: downloads first
- Download manager → pytubefix fallback: falls back
- pytubefix fallback → YouTube: requests video data
- Download manager → FFmpeg manager: locates FFmpeg
- FFmpeg manager → FFmpeg: downloads when needed
- Download manager → FFmpeg: converts and embeds metadata
- Download manager → Downloaded media: writes media
- Downloader GUI → GUI logger: logs progress
- Download manager → GUI logger: logs download status
- Application entry → GitHub repository: checks and pulls updates