# 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](http://localhost:8080) - ...PROFIT!!! Okay, it's not *quite* that simple. See [Usage](#Usage) for actual steps. ## Usage Clone this repo: - Run the following: ``` git clone git@git.jerryaldrichiii.com:jerry/pirate-youtube.git ``` - Create data directory (With `sudo` or root) ``` sudo sh init-data-dir.sh ``` - Populate 'batch.txt': ``` echo "https://www.youtube.com/watch?v=o-YBDTqX_ZU" | sudo tee -a "data/batch.txt" ``` > You can also use a text editor, as long as you use sudo/root, or run: > `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](http://localhost:8080) - Next -> Add User -> Add Media Library - Content type -> Mixed Movies and Shows - Display name: Pirate YouTube - Click `+` on Folders - Add /media/pirate-youtube - Click `Ok` - Click `Ok` (again) - Click `Next`, `Next`, `Next` (Your choice on "Remote Access") - Click `Finish` - "Sign In" - Click hamburger menu in top-left (three horizontal bars) - Administration -> Dashboard -> Scan All Libraries - Click the "House" icon - 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](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](http://localhost:8080)): - Login as admin, goto "My Media", then "Pirate YouTube", and "Delete Media"