Skip to content

Module: YouTube

Ant edited this page Jul 3, 2026 · 15 revisions

The YouTube module browses channels you list yourself and plays videos through mpv — no account or sign-in needed.

Two things are required to use it:

  1. Install yt-dlp (mpv uses it to resolve YouTube URLs at playback time):

    • Raspberry Pi: sudo apt install yt-dlp
    • macOS: brew install yt-dlp
  2. Create youtube_subscriptions.txt in the 240-MP data directory:

    • Raspberry Pi: ~/.local/share/240-MP/youtube_subscriptions.txt
    • macOS: ~/Library/Application Support/240-MP/youtube_subscriptions.txt

    Add one channel ID per line. Blank lines and lines starting with # are ignored:

    # my channels
    UC-2YHgc363EdcusLIBbgxzg
    UC-86w3Ym3OjgyrJPQkEGOdA
    

    A channel's ID is in the URL of its channel page (youtube.com/channel/<ID>). If the page shows a @handle URL instead, view page source and search for "channelId", or use any handle-to-ID lookup tool.

Clone this wiki locally