FOSSFEEDWhere activity matters more than stars. Discover Fire Pit Noted Submit a project
← All articles

Yarrtube Keeps Your Favorite YouTube Channels on Your Server

Keep selected YouTube channels and playlists on your own server with Yarrtube, a lightweight Docker app built around yt-dlp.

YouTube has become a useful part of the homelab hobby. There are years of repair guides and creators documenting projects that would otherwise be difficult to find. Watching one useful video, though, often means being handed a dozen others you never went looking for.

I like the idea of keeping a smaller collection of videos, especially ones worth coming back to. It feels closer to maintaining a media library than browsing an endless feed. Yarrtube follows selected YouTube channels and public playlists, downloads new videos, and keeps the files on your server.

A YouTube Collection You Actually Choose #

Yarrtube works with yt-dlp, a download utility used by plenty of self-hosted media tools. You add the channels or playlists you're interested in, and the application checks for new uploads automatically. The videos are downloaded to a directory you control rather than being left in a list of bookmarks that might never get opened again.

The developer originally built it for watching selected YouTube content at home without relying on the platform's recommendations. That makes sense to me. There are channels I would happily keep in a media library, but I don't necessarily want the entire YouTube experience attached to them.

Yarrtube includes a browser interface for watching downloaded videos on desktop or mobile. It also supports setting download quality and limiting how many videos are kept for a channel, which matters when the storage on your server is already doing several other jobs.

It Can Live Beside Plex or Jellyfin #

The part that caught my attention is how naturally this fits into an existing media setup. Yarrtube saves downloaded videos to disk in a layout intended for media servers. It supports Plex, Jellyfin, and Kodi, so a collection of YouTube channels can sit alongside the rest of your locally stored videos.

For Plex, the project documents a TV-show-style folder layout and an optional scan trigger that asks Plex to refresh the relevant folder after a download. That takes some of the manual library maintenance out of the process. Plex's documented setup uses an NFO-compatible series agent, so it isn't quite as simple as pointing every existing library at a new folder.

The application is written in Rust and stores its tracked-channel information in SQLite. There is no separate database server to maintain. It's a modest arrangement for a job that mostly involves checking for uploads and handing downloads over to yt-dlp.

Docker Setup and a Few Things to Know #

Yarrtube has an official Docker image and a Docker Compose example. The container needs two persistent locations: one for its configuration and SQLite database, and another for the downloaded videos. Persistent mounts keep your tracked channels intact when the container is recreated.

There is one extra setup step. Yarrtube requires a YouTube Data API v3 key, which can be created through Google's developer console. The key is free to obtain, but it means the application still depends on an external service to discover videos. Downloading also depends on YouTube continuing to work with yt-dlp, so occasional breakage is possible.

More importantly, Yarrtube currently has no built-in login system. Anyone who can reach its web interface can use it, including its folder browser. The project's own documentation recommends keeping it on a trusted local network or putting authentication in front of it. I wouldn't expose this one directly to the internet.

A Smaller Way to Watch #

I don't think every self-hosted media application needs to become a full replacement for a commercial platform. Sometimes a focused tool is easier to understand and easier to keep around. Yarrtube is aimed at people who already know which channels they want to follow and would rather have those videos appear in their own library.

It's also worth remembering that downloading videos should respect creators' rights and the platform's terms. Having a local copy doesn't automatically grant permission to redistribute someone else's work.

I couldn't help myself. I had to give YarrTube a proper dark theme. While I was at it, I made a few modifications to the Advanced Settings, including the ability to set minimum and maximum video durations for individual channels and playlists.

For example, I can now tell YarrTube to only download videos that are at least 30 minutes long and automatically skip anything shorter. Each source can have its own duration limits, which gives me a lot more control over what gets downloaded to my server.

A couple of small changes, but they make YarrTube much better suited to how I use it. And thanks to it being open source, I was able to dig into the code and make those changes myself. That's one of my favorite things about self-hosting. If something doesn't quite work the way I want it to, I can usually do something about it.

For the full Docker instructions and the details on media-server integration, I'd recommend visiting the Yarrtube GitHub repository. The documentation explains what the application supports and where its limitations are today.

Comments 0

Join the conversation.

Write a comment

No comments yet. Be the first to comment.

Leave a comment

Anonymous comments are reviewed before publication. Sign in to comment as a member.

Navigation