Algram/ytdl-webserver
关于
📻 用于下载 YouTube 视频的 Web 服务器,支持 Docker。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
📻 ytdl-webserver
Webserver for downloading youtube videos. Ready for docker.
Demo
If you have questions, read the blog post.

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
探索相关项目
加载中…