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.
|
2 years ago | |
---|---|---|
.dockerignore | 2 years ago | |
.gitignore | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
compose.yaml | 2 years ago | |
entrypoint.sh | 2 years ago | |
init-data-dir.sh | 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? 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
Create data directory
With sudo
(or with root), run the following:
sudo sh init-data-dir.sh
Populate 'batch.txt'
Add URLs to batch.txt, by running:
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 do so with 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
- 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 usesudo
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: usesudo
or root) - In Jellyfin (http://localhost:8080):
- Login as admin, goto "My Media", then "Pirate YouTube", and "Delete Media"