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 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
thenpirate-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 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"