How rookslog/mubi-downloader3 works
Mubi Downloader is an interactive command-line tool that finds a film, checks regional availability, uses browser-derived authentication to download and decrypt media, and processes subtitles and audio. The README also documents browser selection, WSL2 cookie access, and automatic track merging. The graph follows the CLI’s visible orchestration and the sampled module responsibilities; some internal download steps and the merger’s connection to downloads were not shown, so that link is marked unverified.
Main entry points: mubi_downloader.py Download and decrypt · __main__.py CLI entry point · auth_manager.py Cookie and auth manager · mergetomkv.py MKV merger
Components 16
CLI workflow
- CLI entry point
src/mubi_downloader/__main__.py - Movie search
src/mubi_downloader/mubi_downloader.py - Region check
src/mubi_downloader/__main__.py
Authentication and environment
- Environment detection
src/mubi_downloader/environment.py - Cookie and auth manager
src/mubi_downloader/auth_manager.py - Browser cookie stores
Download and media processing
- Download and decrypt
src/mubi_downloader/mubi_downloader.py - Subtitle and audio processing
src/mubi_downloader/mubi_downloader.py - MKV merger
src/mubi_downloader/mergetomkv.py - Downloaded media files
External services
- Film search service
- IP location service
- Mubi API
- DRM license service
- Streaming media
Other components
- User
Connections 18
- User → CLI entry point: runs
README.md - CLI entry point → Environment detection: detects environment
src/mubi_downloader/__main__.py - CLI entry point → Cookie and auth manager: initializes
src/mubi_downloader/__main__.py - Cookie and auth manager → Environment detection: gets cookie paths
src/mubi_downloader/auth_manager.py - Cookie and auth manager → Browser cookie stores: reads cookies
src/mubi_downloader/auth_manager.py - CLI entry point → Movie search: searches film
src/mubi_downloader/__main__.py - Movie search → Film search service: queries
src/mubi_downloader/mubi_downloader.py - Movie search → IP location service: gets location
src/mubi_downloader/mubi_downloader.py - CLI entry point → Region check: checks region
src/mubi_downloader/__main__.py - CLI entry point → Download and decrypt: starts download
src/mubi_downloader/__main__.py - Download and decrypt → Cookie and auth manager: prepares auth
src/mubi_downloader/mubi_downloader.py - Download and decrypt → Mubi API: requests film access
src/mubi_downloader/mubi_downloader.py - Download and decrypt → Streaming media: fetches stream data
src/mubi_downloader/mubi_downloader.py - Download and decrypt → DRM license service: requests license
src/mubi_downloader/mubi_downloader.py - Download and decrypt → Downloaded media files: writes media
src/mubi_downloader/mubi_downloader.py - Download and decrypt → Subtitle and audio processing: processes tracks
src/mubi_downloader/mubi_downloader.py - Download and decrypt → MKV merger: may merge tracks
README.md - MKV merger → Downloaded media files: collects media
src/mubi_downloader/mergetomkv.py