Back to services

Pinchflat

Download YouTube content built using yt-dlp.

View alternatives to Pinchflat
Suggest edit
Open source
Self-hostable
AGPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Pinchflat is a self-hosted app for downloading YouTube content, built on top of yt-dlp. The project aims to be lightweight, self-contained, and easy to use. Once you set up download rules for a YouTube channel or playlist, Pinchflat checks for new content on a regular schedule and downloads it automatically. It is open source under the AGPL-3.0 license.

It is mainly meant for downloading channels and playlists, but it can also download individual videos. It does not offer in-app viewing: content is saved straight to disk, and you then watch it with a media center app (Plex, Jellyfin, Kodi) or a player such as VLC.

Key Features

  • Self-contained: just one Docker container, with no external dependencies
  • Flexible naming system: you decide where files are stored and how they are named
  • Web admin interface: easy to use, with built-in presets so it works right out of the box
  • Media center support: first-class support for Plex, Jellyfin, and Kodi
  • Podcast RSS feeds: can provide RSS feeds so you can listen in your favorite podcast app
  • Automatic tracking: automatically downloads new content from channels and playlists; the project says it uses a new approach that fetches new content faster than comparable apps
  • Audio downloads: supports downloading audio only
  • Shorts and live stream rules: you can set separate handling rules for YouTube Shorts and live streams
  • Notifications: supports Apprise notifications
  • Scheduled redownloads: new media can be redownloaded automatically after a set amount of time, to get better quality or update SponsorBlock markers
  • Automatic cleanup: optionally deletes old content automatically
  • Filtering: set a cutoff date, or filter which videos to download by title
  • Cookies support: pass cookies to YouTube to download private playlists
  • SponsorBlock integration
  • Advanced options: customize yt-dlp arguments; run custom scripts after media is downloaded or deleted (Alpha)
  • Prometheus monitoring: optional, for use with Grafana

Target Users and Use Cases

  • Users who want to automatically pull YouTube channel content into a home media library such as Plex, Jellyfin, or Kodi
  • People who want to archive favorite creators or playlists long term, in case videos are deleted
  • Users who want to treat YouTube shows as podcasts and listen in a podcast app
  • Self-hosting enthusiasts running home servers such as a NAS or Unraid

Installation and Deployment

Unraid

Search for Pinchflat in the Community Apps store to install it.

Docker Compose (works with Portainer)

services:
  pinchflat:
    image: ghcr.io/kieraneglin/pinchflat:latest
    environment:
      - TZ=America/New_York
    ports:
      - '8945:8945'
    volumes:
      - /host/path/to/config:/config
      - /host/path/to/downloads:/downloads

Docker

docker run \
  -e TZ=America/New_York \
  -p 8945:8945 \
  -v /host/path/to/config:/config \
  -v /host/path/to/downloads:/downloads \
  ghcr.io/kieraneglin/pinchflat:latest

The image is published on GHCR and is also available on Docker Hub (keglin/pinchflat:latest). You can also build it locally from source. The project also documents how to run it with Podman, as a non-root user under a user namespace.

Technical Requirements and Notes

  • Directory permissions: the mounted config and download directories must be writable by the user running the container. Running as root is not recommended, since it can cause permission problems when other apps access the downloaded files
  • Database: uses SQLite, in WAL mode by default. Putting the config directory on a network share is not recommended; if you have to, you can set JOURNAL_MODE to delete, but this risks data corruption, so back up before changing it
  • Reverse proxy: the app relies heavily on WebSockets for real-time updates, so your reverse proxy must support WebSockets. You can set a route prefix with BASE_ROUTE_PATH
  • Common environment variables: TZ (time zone), BASIC_AUTH_USERNAME / BASIC_AUTH_PASSWORD (basic authentication), EXPOSE_FEED_ENDPOINTS (expose RSS feeds), ENABLE_IPV6, UMASK, YT_DLP_WORKER_CONCURRENCY (concurrency; can be set to 1 if your IP gets limited), and more
  • Default port: 8945

Things Worth Noting

  • The project is still under active development, and the author states that stability and forward compatibility of updates are not guaranteed
  • The author does not accept personal donations and instead encourages users to donate directly to the Electronic Frontier Foundation (EFF)
  • The official README recommends Tube Archivist, ytdl-sub, and TubeSync as similar alternatives