Syncs YouTube channels and playlists to a locally hosted media server
open sourceAGPL-3.0-onlyself-hostablefree
TubeSync is a PVR (personal video recorder) for YouTube, "like Sonarr but for YouTube" with a built-in download client: it indexes the channels and playlists you add, downloads new media in the quality and formats you choose and tells your Plex or Jellyfin server to update. Internally it is a Django web interface around yt-dlp and FFmpeg with a task scheduler, and failed downloads are retried with back-off timers for a long time so it can run hands-free. It runs as a Docker or Podman container for amd64 and arm64, stores its data in SQLite by default (PostgreSQL, MySQL and MariaDB are options), and is AGPL-3.0. Administration is done entirely in the web interface, which has no JavaScript and no progress bars.
Ways to install
On your own server
Problems it solves
- something like Sonarr but for YouTube channels
- sync my favourite YouTube channels to my Plex server and have the library refresh by itself
- download new videos from YouTube playlists into Jellyfin in the exact resolution and codec I want
- a hands-off YouTube downloader that keeps retrying failed downloads instead of giving up
- watch YouTube channels from my home media server without ads or the algorithm
- keep music from a YouTube playlist in a separate audio folder from videos
- self-host a YouTube recorder on a Raspberry Pi with Docker
- add videos to a playlist on my phone and have my server download them automatically
- run my YouTube downloader against PostgreSQL or MariaDB instead of SQLite
- import YouTube videos I already downloaded so they aren't fetched again
- skip or mark sponsor segments in YouTube videos my server downloads
- use my YouTube cookies on the server so it can download restricted videos
- set a minimum video height so low-quality uploads aren't downloaded
Features
- indexes YouTube channels and playlists on a schedule and downloads new media
- choice of resolution, codecs and audio-only sources
- updates Plex or Jellyfin after downloads
- separate video and audio download folders
- retries failed downloads with back-off timers
- SponsorBlock categories per source
- cookies support and YouTube proof-of-origin token providers
- import existing media and write missing metadata files
- custom filters for which media to download
- SQLite by default, or PostgreSQL, MySQL or MariaDB
View 4 more
- optional HTTP basic authentication
- Docker or Podman containers for amd64 and arm64, or a manual Django install
- automated yt-dlp version enforcement
- full Django admin available
Limitations
- Doesn't download single videos: it only scans channels and playlists, and the FAQ suggests adding videos to your own playlist instead2
- YouTube only: it doesn't support other video platforms yet, although yt-dlp supports hundreds2
- No multi-user support or user management: only HTTP basic authentication2
- Media server updates only for Plex and Jellyfin: no Emby or Kodi3
Alternatives
The same job
These do what TubeSync does.
- Tube Archivist Your self hosted YouTube media server
- Pinchflat Your next YouTube media manager
- ytdl-sub Lightweight tool to automate downloading and metadata generation with yt-dlp
- MeTube Self-hosted video downloader for YouTube and other sites (web UI for yt-dlp)
