Video Downloader is a service written in Go and containerized with Docker. It takes a URL as parameter and downloads it to a folder.
git clone [email protected]:sommerper/video-downloader.git
cd video-downloader
docker-compose up -d --build
Port 17945
will know be listening for requests of type:
http://localhost/video?url=https://www.youtube.com/watch?v=xxx
It is using https://github.com/yt-dlp
as downloader so in theory anything yt-dlp
can download should be acceptable input URLs.
All videos will be saved in the vids
folder and can be configured in docker-compose.yml
.
Using
sudo nano /etc/caddy/Caddyfile
Add the following to your Caddyfile
videodownloader.myserver.com {
reverse_proxy 127.0.0.1:17945
}
Shortcuts for iOS is provided for quick access.
After importing the shortcut you need to change the TEXT URL property to match your server.
Right click in your desktop browser and add this Download Video.
javascript:(() => { location.href='https://videodownloader.myserver.com/video?url=' + document.URL })();
Right click in your desktop browser and add this Download Audio.
javascript:(() => { location.href='https://videodownloader.myserver.com/video?audioonly=true&url=' + document.URL })();
Then use it when on a youtube video page.
If you think this helped you out you can donate a small amount here