Watch movies, series, and anime from your terminal — multi-language, multi-source, no browser required. A maintained fork of autoflix-cli.
Project description
FreeFlix CLI 🍿
Watch movies, series and anime from your terminal — multi-language, multi-source, no browser, no ads.
FreeFlix is a hardened, feature-extended fork of autoflix-cli by PaulExplorer. All upstream functionality is preserved ; on top of that, FreeFlix ships :
- A second player (Haruna, the KDE mpv-based GUI) ;
- A complete download backend (yt-dlp for HLS, aria2c for direct mp4, with quality selection 480p/720p/1080p) ;
- Batch "download whole season" ;
- Position-in-episode resume (mpv lua hook + tracker) ;
- AniList sync on watch / mark-as-watched ;
- OpenSubtitles fallback when a source has no subtitle ;
- Parallel multi-episode downloads (1–4 workers) ;
- Daily new-episode notifications via systemd timer + libnotify ;
- A Nyaa torrent provider (downloads via aria2 BitTorrent) ;
- A Local Downloads browser in the home menu ;
- Anime4K Mode A_VL shaders pre-bundled (toggle CTRL+1 / CTRL+0) ;
- French localisation of the whole UI (auto-switched based on language pref) ;
- Multi-mirror portal fallback +
website_origincaching (24 h TTL) ; - Multiple bug fixes : 403 on
/catalogue/?search=(animes-sama.fr refactor), double-slash legacy URLs in history, settings-menu exit loop, ffmpeg infinite-reconnect at byte 1506, Videasy/Vidlink Referer not propagated, history resume silent-failure, and more.
⚠️ FreeFlix is a community fork. The original project is autoflix-cli by PaulExplorer ; all credit goes to him for the underlying scraping work and architecture. FreeFlix exists only to consolidate the fixes and features I personally needed.
✨ What FreeFlix gives you
| Feature | |
|---|---|
| 🎬 | Stream movies, series and anime in VF / VOSTFR / VA / VJ / VKR / VCN |
| 📥 | Download single episodes or entire seasons to ~/Downloads/FreeFlix/ |
| ▶️ | Resume at the exact second you left off (mpv only) |
| 🔄 | AniList sync : mark-as-watched on AniList automatically |
| 📝 | OpenSubtitles fallback when a source has no subs |
| ⚡ | Parallel downloads (up to 4 concurrent episodes) |
| 🔔 | Daily notifications when new episodes drop |
| 🌊 | Nyaa.si torrents (high-quality anime releases) |
| 🌐 | 6 streaming sources : Anime-Sama, GoldenAnime, GoldenMS, Coflix, French-Stream, Nyaa |
| 🎮 | 5 player backends : mpv, Haruna, VLC, browser, download-only |
| 🇫🇷 | French UI : the whole CLI is in French when language is set to FR |
| 🛡 | Anti-crash mpv config : ytdl-hook off, gpu renderer, no infinite reconnect |
| 🎨 | Anime4K pre-bundled with runtime toggle CTRL+1 / CTRL+0 |
📦 Installation
🚀 Quickest — one command from PyPI
If you already have the system deps (mpv, yt-dlp, ffmpeg, aria2, libnotify) :
# Recommended — uv installs `freeflix` in an isolated venv and adds it to PATH
uv tool install freeflix-cli
# Or with pipx
pipx install freeflix-cli
# Or plain pip (user install)
pip install --user freeflix-cli
Then :
freeflix
If you need the system deps installed for you (mpv, Haruna, yt-dlp, ffmpeg, aria2, libnotify) and the Anime4K shaders auto-fetched, use the OS-specific installer script below — it's the same install + extras.
Linux (Fedora, Debian/Ubuntu, Arch, openSUSE, Alpine)
git clone https://github.com/freedy237/freeflix-cli.git
cd freeflix-cli
chmod +x scripts/install.sh
./scripts/install.sh
The script detects your distro and installs : mpv, haruna, yt-dlp, ffmpeg, aria2, libnotify, Python deps, then the freeflix command via uv (preferred) or pipx.
macOS
git clone https://github.com/freedy237/freeflix-cli.git
cd freeflix-cli
chmod +x scripts/install-mac.sh
./scripts/install-mac.sh
Uses Homebrew for system deps. IINA is installed in place of Haruna (Haruna isn't on macOS).
Windows (10/11)
Open PowerShell as a regular user :
git clone https://github.com/freedy237/freeflix-cli.git
cd freeflix-cli
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1
Uses winget for system deps. mpv.net is installed (the maintained Windows port of mpv).
From source (developer mode)
git clone https://github.com/freedy237/freeflix-cli.git
cd freeflix-cli
# Editable install — changes to source are picked up immediately
pip install --user -e .
# OR
uv pip install -e .
🚀 Usage
freeflix
That's it. The menu walks you through everything.
Common keyboard shortcuts in mpv / Haruna
| Key | Action |
|---|---|
| CTRL + 1 | Enable Anime4K Mode A_VL |
| CTRL + 0 | Disable Anime4K |
# |
Cycle audio track |
j |
Cycle subtitle track |
_ (Shift + -) |
Cycle video track |
| ALT + V | Cycle video track (alias) |
| ALT + 1 / 2 / 3 | Force video track #1 / #2 / #3 |
| ALT + T | Show track diagnostics |
i |
Toggle mpv stats overlay |
Hybrid laptops (Intel/AMD iGPU + Nvidia dGPU)
If you're on a Linux Optimus laptop, FreeFlix detects the Nvidia card via nvidia-smi and routes mpv onto it automatically (no FPS drop with Anime4K). To also have this when launching mpv or haruna standalone (outside FreeFlix), copy the wrappers :
cp scripts/wrappers/mpv ~/.local/bin/mpv
cp scripts/wrappers/haruna ~/.local/bin/haruna
chmod +x ~/.local/bin/{mpv,haruna}
(Make sure ~/.local/bin is in your $PATH before /usr/bin.)
The Linux install.sh does this for you when it detects an Nvidia card.
Settings menu
freeflix → ⚙ Settings (AniList) exposes :
- AniList Token — paste the OAuth token from anilist.co to enable sync ;
- Language — switches the UI (FR / EN) and default subtitle language ;
- Default Player — mpv / vlc / haruna / browser / download / manual ;
- Download Quality — auto / 1080 / 720 / 480 ;
- OpenSubtitles API Key — register free at opensubtitles.com/en/consumers ;
- Parallel Downloads — number of concurrent batch workers (1–4) ;
- Daily New-Episode Notifications — enables a
systemd --usertimer that scans Anime-Sama history once a day.
🛠 What got fixed vs. upstream autoflix-cli
| Bug | Fix |
|---|---|
403 on anime-sama portal after anime-sama.pw shutdown |
Override to animes-sama.fr + local source_portal.jsonc |
404 on /catalogue/?search=… (new site rejects trailing slash) |
Strip the slash + URL-encode the query |
Search results parser broken (no more <h2>) |
Fall back to <div class="card-title"> |
Season list empty (no more panneauAnime() JS) |
Detect seasons via <a href="/catalogue/<slug>/<season>"> |
Episode list empty (no more episodes.js endpoint) |
Fetch <season>/<lang> HTML and parse inline var epsN = […] |
parse_episodes_from_js only matched single quotes |
Now accepts single AND double quotes |
History entries with // in season URL → resume silently exits |
_absolutize() collapses repeated slashes |
| Settings menu : choosing options 0/1 immediately closes the menu | Refactor stray ifs into a proper if/elif/elif/else chain |
| Videasy/Vidlink 502 Bad Gateway in proxy | Propagate selection["headers"] (Origin + Referer) all the way through |
| mpv infinite reconnect loop at byte 1506 | Remove stream-lavf-o=reconnect=… ; rely on the proxy retry |
| mpv ytdl-hook crashes on autoflix proxy URLs | ytdl=no in mpv.conf |
Vulkan/gpu-next instability on Mesa |
vo=gpu (stable renderer) |
| DNS-over-HTTPS timeouts (1.1.1.1) | Automatic fallback to system DNS |
🆕 What's new in v1.0
- 🎮 Haruna added as a player option (mpv + GUI = same engine, nicer UX) ;
- 📥 Download option in every player menu — yt-dlp for HLS, aria2c for direct mp4, sane defaults ;
- 📥 Batch "Download ALL episodes" in the anime-sama flow ;
- ▶️ Position-in-episode resume via mpv lua hook ;
- 🔄 AniList writeback on mark-as-watched ;
- 📝 OpenSubtitles fallback (requires free API key) ;
- ⚡ Parallel downloads (configurable 1–4 workers) ;
- 🔔 Daily new-episode notifications (systemd
--usertimer) ; - 🌊 Nyaa torrent provider (aria2c BitTorrent mode) ;
- 📁 My Downloads menu in the home (local file browser + play) ;
- ✓ Mark an episode as watched (no play) ;
- 🌐 Multi-portal fallback : list of mirrors per source, tried in order ;
- 💾 Portal URL cache (24 h TTL) ;
- 🎨 Anime4K Mode A_VL pre-bundled (toggle CTRL+1 / CTRL+0) ;
- 🇫🇷 French localisation of the whole UI ;
- 🛡 Stability-first mpv.conf (anti-crash) shared between mpv and Haruna.
🔍 Project layout
freeflix-cli/
├── src/freeflix_cli/
│ ├── main.py # entry point (`freeflix` command)
│ ├── tracker.py # local progress / settings store
│ ├── player_manager.py # mpv/vlc/haruna/download dispatcher
│ ├── i18n.py # FR/EN translations
│ ├── subtitles.py # OpenSubtitles client
│ ├── notifications.py # daily scan + systemd setup
│ ├── handlers/ # per-provider flows
│ └── scraping/ # site-specific scrapers
├── config/
│ ├── mpv.conf # anti-crash + Anime4K config (shared)
│ ├── input.conf # CTRL+1 / CTRL+0 Anime4K toggles
│ └── autoflix_position.lua # position-resume mpv script
├── scripts/
│ ├── install.sh # Linux multi-distro
│ ├── install-mac.sh # macOS (Homebrew)
│ └── install.ps1 # Windows (winget)
├── data/
│ └── source_portal.jsonc # portal URL overrides
├── pyproject.toml
├── LICENSE # GPL v3 (inherited from upstream)
└── README.md
🤝 Credits
- Original project : autoflix-cli by PaulExplorer — all the heavy scraping lift comes from there.
- Anime4K shaders : bloc97/Anime4K.
- mpv & Haruna : their respective authors.
- GitHub: @freedy237 — fork maintainer.
📜 License
GNU General Public License v3.0 — same as upstream. See LICENSE.
🇫🇷 Résumé en français
FreeFlix est un fork stabilisé d'autoflix-cli avec :
- 5 lecteurs (mpv, Haruna, VLC, navigateur, download-only) ;
- Téléchargement vidéo (yt-dlp / aria2c, choix qualité, batch saison complète) ;
- Reprise à la seconde près dans mpv ;
- Sync AniList, fallback OpenSubtitles ;
- Téléchargements parallèles + notifications quotidiennes ;
- Source Nyaa torrents en plus ;
- UI 100 % traduite en français ;
- Config mpv anti-crash + Anime4K déjà préinstallé ;
- Tous les bugs liés au refacto d'animes-sama.fr de mai 2026 fixés.
Installer :
uv tool install freeflix-cli # ou pipx install freeflix-cli
…puis tape freeflix. Si tu n'as pas encore mpv, yt-dlp, ffmpeg, aria2 et libnotify installés sur ta machine, lance plutôt le script d'install dédié à ton OS (scripts/install.sh, install-mac.sh ou install.ps1) qui prend tout en charge.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeflix_cli-1.1.1.tar.gz.
File metadata
- Download URL: freeflix_cli-1.1.1.tar.gz
- Upload date:
- Size: 97.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
455fa113fc38466e8ed7c59a618e01ec5880ade2c201fffe8a6436a572745643
|
|
| MD5 |
648bf5f882ee47b43db85bcc0f32c30a
|
|
| BLAKE2b-256 |
3df864f9e9d10fb60a4afdd3db61f3cc51bbf87b270aa3c30a07f6604473fcbc
|
Provenance
The following attestation bundles were made for freeflix_cli-1.1.1.tar.gz:
Publisher:
release.yml on freedy237/freeflix-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
freeflix_cli-1.1.1.tar.gz -
Subject digest:
455fa113fc38466e8ed7c59a618e01ec5880ade2c201fffe8a6436a572745643 - Sigstore transparency entry: 1652316284
- Sigstore integration time:
-
Permalink:
freedy237/freeflix-cli@aaf8237ec64efdfd9e5b73da25380e6ec64a0ce5 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/freedy237
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@aaf8237ec64efdfd9e5b73da25380e6ec64a0ce5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file freeflix_cli-1.1.1-py3-none-any.whl.
File metadata
- Download URL: freeflix_cli-1.1.1-py3-none-any.whl
- Upload date:
- Size: 110.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e424cf000cfa0c7e1f5100a4c1614fe2b07aab8816674d8a97e3abe1f732a910
|
|
| MD5 |
845c7d0ad747d8770495ab1f767e68e1
|
|
| BLAKE2b-256 |
dd1d37c54dde1defcb25f57308f1adaf7004ce4a336b2f36bc1d6c3ff18be2aa
|
Provenance
The following attestation bundles were made for freeflix_cli-1.1.1-py3-none-any.whl:
Publisher:
release.yml on freedy237/freeflix-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
freeflix_cli-1.1.1-py3-none-any.whl -
Subject digest:
e424cf000cfa0c7e1f5100a4c1614fe2b07aab8816674d8a97e3abe1f732a910 - Sigstore transparency entry: 1652316410
- Sigstore integration time:
-
Permalink:
freedy237/freeflix-cli@aaf8237ec64efdfd9e5b73da25380e6ec64a0ce5 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/freedy237
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@aaf8237ec64efdfd9e5b73da25380e6ec64a0ce5 -
Trigger Event:
push
-
Statement type: