Jellyfin + yt-dlp + long flight = Magic
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jerry Aldrich 39119b1b0f First commit 2 years ago
.dockerignore First commit 2 years ago
.gitignore First commit 2 years ago
Dockerfile First commit 2 years ago
README.md First commit 2 years ago
compose.yaml First commit 2 years ago
entrypoint.sh First commit 2 years ago
init-data-dir.sh First commit 2 years ago

README.md

Pirate YouTube

WARNING: This repo only supports Linux at this time

Do you have an ever growing list of "Watch Later" videos on YouTube?

Do you also have a significant amount of time coming up where you won't have access to the Internet? Like, say, a flight to Taiwan?

This repo has a solution!

Simply:

  • Create a batch.txt file with URls to YouTube videos
  • Run docker compose up
  • View your videos at http://localhost:8080
  • ...PROFIT!!!

Okay, it's not quite that simple. See Usage for actual steps.

Usage

Clone this repo:

  • Run the following:
    git clone git@git.jerryaldrichiii.com:jerry/pirate-youtube.git
    cd pirate-youtube
    

Create data directory:

  • Run the following (using sudo or root):
    sudo sh init-data-dir.sh
    

Populate 'batch.txt':

  • Using echo (Or...realistically a editor...with sudo/root):
    echo "https://www.youtube.com/watch?v=o-YBDTqX_ZU" | sudo tee -a "data/batch.txt"
    

If you didn't use an editor/sudo/root, then run the following:

chown -R 1337 data/batch.txt

Download YouTube Vidoes:

  • Start yt-dlp container:
    sudo docker compose up ytdlp
    

Start/Configure Jellyfin:

  • Start Jellyfin:
    sudo docker compose up jellyfin
    

Configure Jellyfin:

  • Connect to http://localhost:8080
  • Next -> Fill in fields to add user -> Next -> Add Media Library
  • Content type -> Mixed Movies and Shows
  • Display name: Pirate YouTube
  • Click + on Folders
  • Click /media then pirate-youtube
  • Click Ok
  • Click Next, Next, Next (Your choice on "Remote Access")
  • Click Finish
  • Sign In
  • Click hamburger menu in top-left (three horizontal bars)
  • Dashboard -> Scan All Libraries
  • Click the "Home" icon in the top bar
  • Click "Pirate YouTube"
  • Profit!!!

FAQ

Why not youtube-dl?

At the time of this writing, the last release of youtube-dl was 2023/12/17 which was non-functional with current YouTube URLs

How do I add more videos?

  • Add URLs to data/batch.txt (make sure you use sudo or root)
  • Run docker compose up ytdlp in an another terminal
  • In Jellyfin (http://localhost:8080):
    • Login as admin, then goto the "Dashboard" and "Scan All Libraries"

How do I remove videos?

  • Remove relevant commented URL in data/batch.txt (NOTE: use sudo or root)
  • In Jellyfin (http://localhost:8080):
    • Login as admin, goto "My Media", then "Pirate YouTube", and "Delete Media"