ytdl-webserver

? Webserver for downloading youtube videos. Ready for docker.

Github星跟踪图

Demo

If you have questions, read the blog post.

Demovideo

Installation

As a server

npm install && npm start

As a docker image

Basic

docker run --name ytdl -d -p 3000:3000 algram/ytdl-webserver

Advanced

Build the docker image, create a directory to hold and access the downloaded videos on the host, and then start a container instance of the image.

docker build -t <your username>/ytdl-webserver .
mkdir /tmp/videos
docker run --name ytdl -v /tmp/videos:/home/app/public/temp -p 3000:3000 -d <your username>/ytdl-webserver

In the example above, we are creating a directory under /tmp to hold the videos and then specifying a host mount to the container that corresponds to that new directory. You may update this to any path on your host or use a different existing path if you would prefer. The host mount also improves performance as the downloaded files are written to the native host filesystem bypassing the CoW filesystem of the container.

Development

To start contributing you only have to run one command.

npm run dev

This will start webpack and a dev server on localhost:8080

License

MIT

主要指标

概览
名称与所有者Algram/ytdl-webserver
主编程语言JavaScript
编程语言JavaScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2016-05-27 07:59:24
推送于2023-02-22 16:30:11
最后一次提交2019-10-12 19:40:25
发布数0
用户参与
星数1.4k
关注者数24
派生数144
提交数84
已启用问题?
问题数24
打开的问题数12
拉请求数10
打开的拉请求数30
关闭的拉请求数14
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?