Skip to main content

sestudio

Download episodes from fstream — via CLI or a local web UI.

Casting from a phone

Casting, in general, need the receiving TV to have access to the network address of the sestudio server.

If you are outside of your network, and use tailscale to access to your server, you will need to set up a port forwarding from your phone on your incoming wlan connections to your server's tailscale address.

Then, you will have to connect on your phone browser to your your phone's local network address (that will be forwarded to your server).

By doing this, the TV will connect to your phone's local network address, and your phone will forward the stream to your server, making the cast work.

The server serves HTTPS by default (self-signed) on port 8443, which is what Chromecast/AirPlay require — no Caddy or reverse proxy needed. The certificate is self-signed, so trust it once on the casting device (see HTTPS built in below).

To sum this up, here are the steps to follow to have full casting functionality:

  • Be connected to tailscale
  • Having port 8443 forwarded from your phone lan ip to the server's tailscale address
  • Connect to https://:8443 from your phone browser

The phone ip address can be easily found on Android by long pressing the wifi widget, and then clicking on "advanced info" icon next to the current wifi name.

Requirements

  • uv — that's the only thing you install.

Everything else is bundled: uv provides Python, and yt-dlp plus a static ffmpeg ship as dependencies (a system ffmpeg on PATH is preferred when present, giving a real ffprobe and fuller codecs). Node 18+ is only needed to rebuild the frontend during development.

Supported platforms

The wheel bundles a static ffmpeg, so it targets the platforms imageio-ffmpeg ships wheels for:

OS Arch
Linux x86_64, arm64
macOS arm64
Windows x86_64

Install / run

Run it directly, without installing (recommended):

uvx sestudio                  # web UI (default command)
uvx sestudio download <url>   # CLI

With no command, sestudio starts the web UI — uvx sestudio --port 9000 is the same as uvx sestudio serve --port 9000.

Or set up a source checkout for development:

uv sync

Usage

CLI — download a season

# All episodes, VF (default)
uv run sestudio download <season-page-url>

# Specific episodes, VOSTFR, custom output folder
uv run sestudio download <url> -e 1,3,5-8 --lang vostfr -o ~/Videos

# Dry-run: resolve URLs without downloading
uv run sestudio download <url> --dry-run
Option Default Description
-e, --episodes all Episodes to download, e.g. 1,3,5-8
--lang vf Language (vf or vostfr)
-o, --output . Output directory
-c, --concurrency 20 Parallel downloads
--provider uqload Stream provider
--dry-run off Print resolved URLs, don't download
--no-resolve off Skip live-domain auto-resolution
-v, --verbose off Debug logging

Web UI

uv run sestudio serve

Starts two servers by default — http://<host>:8080 and https://<host>:8443 (self-signed cert). Open the HTTP one for hassle-free browsing and DLNA casting; open the HTTPS one for Chromecast/AirPlay (which require a secure context — trust the cert once, see below). The server keeps running in the terminal — downloads continue in the background even if you close the browser tab. Stop it with Ctrl-C.

Option Default Description
--host 0.0.0.0 Bind address (0.0.0.0 = reachable from other devices on your LAN)
--port 8443 HTTPS port
--http-port 8080 HTTP port (DLNA / cast media fetch over plain HTTP)
--no-http off Don't start the HTTP server (HTTPS only)
--no-https off Don't start the HTTPS server (HTTP only)
--no-resolve off Skip live-domain auto-resolution

The default 0.0.0.0 binding makes the UI reachable from other devices on your network — needed for casting. There is no authentication, so run it only on a trusted home network. Pass --host 127.0.0.1 to restrict it to the local machine.

Features:

  • Search fstream, browse season cards with posters and language badges

  • Expand seasons to episode level; cascading checkboxes (series → season → episode)

  • Global language and output folder settings (persisted to ~/.config/sestudio/config.json)

  • Per-episode progress bars via SSE; downloads keep running after closing the browser tab

  • Play an episode in the browser (▶ per row) — streams through the server, so provider referer/TLS quirks are handled for you, with automatic fallback across providers

  • Cast to a TV (⧉ per row) — send an episode to any DLNA renderer on your network; Chromecast and AirPlay are available from the player when served over HTTPS (see below)

  • Continue Watching & Next Up — the home screen resumes what you were watching (browser or cast progress counts), suggests the next episode per series, and marks watched episodes; remove an item with its ✕. Stored locally in the browser.

  • Web ↔ TV handoff — the player's ⧉ button casts the current episode from the current position; "Watch here" on a cast pill pulls it back into the browser where the TV left off

  • Player niceties — resume with "Start over", 5-second auto-next countdown with cancel, volume/speed remembered across episodes and reloads

  • Download to the server or to this device — the confirm dialog offers both (default in Settings). Direct MP4 sources are relayed straight to the browser; HLS has no single file to relay, so it downloads as a normal server job (with full progress, provider fallback and retries) and the browser collects the finished file. Device files are staged in a temp dir and removed when you clear the download history.

Metadata: results are enriched with posters, ratings, synopses, cast and a "Trending this week" row, via themoviedb.org. Released builds ship a default TMDB key, so uvx sestudio works with no setup. To use your own key instead, set TMDB_API_KEY=<your key> in the environment or save it in Settings (it lands in ~/.config/sestudio/config.json); either takes precedence over the built-in one. Keys are free. The key is never sent to the browser, and builds from a source checkout have no default key — there, enrichment stays off until you supply one.

Audio/subtitle tracks: the streaming proxy passes HLS alternate renditions (#EXT-X-MEDIA audio/subtitle tracks) through untouched, so when a provider's stream carries multiple tracks the player's menus expose them automatically. In practice the current providers serve single-rendition streams, so the menus usually have nothing extra to show; side-loaded subtitles (e.g. OpenSubtitles) are not supported yet.

Downloads are organised automatically, with a per-language subfolder (VF / VOSTFR / VO):

<output_root>/<Series Name>/Season 01/VOSTFR/S01E01 - Title.mp4
<output_root>/fstream_films/VF/<Film Title>.mp4

The "already downloaded" check is per-language, so the same episode in VF and VOSTFR are tracked separately.

Watch & cast on your network

Start the server so other devices can reach it (this is the default bind):

uvx sestudio serve --host 0.0.0.0
  • Google Cast (Chromecast) and AirPlay need a secure context (HTTPS) — the Cast Web Sender SDK refuses to run over plain HTTP. sestudio serves HTTPS by default, so this works out of the box once you trust the cert (below).
  • In-browser player and DLNA "Cast to TV" also work; the ⧉ button scans for renderers (a ~4 s SSDP scan) and pushes the stream to the one you pick. DLNA renderers fetch the media over plain HTTP, which the server always exposes on --http-port (8080) alongside HTTPS — so casting works without any extra flags.

HTTPS built in (default)

sestudio terminates HTTPS itself with a self-signed certificate covering your LAN IP — no extra tools. By default it runs both an HTTP and an HTTPS server:

uvx sestudio serve                # both: http://…:8080 and https://…:8443
uvx sestudio serve --no-https     # HTTP only (:8080)
uvx sestudio serve --no-http      # HTTPS only (:8443)

The HTTPS certificate is self-signed (cached at ~/.config/sestudio/cert.pem), so a client that uses the HTTPS site must trust it once:

  • Desktop browser: open the URL and accept the certificate warning, or import ~/.config/sestudio/cert.pem into the system trust store.
  • Android phone driving the cast: install ~/.config/sestudio/cert.pem as a user CA (Settings → Security → Encryption & credentials → Install a certificate → CA certificate). Without trusting it, the Cast button won't list devices.

Development

# Run tests
uv run pytest

# Backend for the dev proxy: plain HTTP on 8080 (the Vite proxy target)
uv run sestudio serve --no-https

# Frontend dev server (proxies /api to localhost:8080)
cd frontend && npm install && npm run dev

# Rebuild frontend (commit the result — frontend/dist ships in the wheel)
cd frontend && npm run build

Providers

Provider Status
uqload supported
vidzy planned
netu / voe out of scope (session-token protected)

Metadata

Release files for sestudio 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sestudio 0.10.1
File Size Uploaded
sestudio-0.10.1.tar.gz 38.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for sestudio 0.10.1
File Interpreter ABI Platform
sestudio-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.7 MB

Release files / sestudio-0.10.1.tar.gz

Download URL sestudio-0.10.1.tar.gz
Size 38.4 MB
Tags Source
SHA-256 checksum
How to use checksums
f4c100486ea296adcdcf73734ed72ad823ad0da37471b45c33bfb7121f902d53
BLAKE2b-256 checksum
How to use checksums
324049dfc2866a53dcd872a2f29a073f579d43d3be958d832fc4e88afc0f5304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sestudio-0.10.1-py3-none-any.whl

Download URL sestudio-0.10.1-py3-none-any.whl
Size 359.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
146b3c60d405393c46354fea46dccd29cf15cc73c303b40cf9dc6e6b3c3ba368
BLAKE2b-256 checksum
How to use checksums
27a2cdeb7674b6a8734bce4c86fee740ecf91d9ca62ee7890aec3d0ea7d67ebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.16.3

2 release files

0.16.2

2 release files

0.16.1

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.1

2 release files

This release

0.10.1 This release

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page