{"_id":"@develon/youtube-dl-rest","name":"@develon/youtube-dl-rest","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@develon/youtube-dl-rest","version":"1.0.0","description":"Website for downloading Youtube & BiliBili videos","scripts":{"start:dev":"nodemon index.js","start":"node index.js"},"license":"MIT","dependencies":{"express":"^4.17.1"},"publishConfig":{"access":"public"},"homepage":"https://github.com/develon2015/Youtube-dl-REST","repository":{"type":"git","url":"git+https://github.com/develon2015/Youtube-dl-REST.git"},"gitHead":"add38c79650d7b25eed3993a90dee6d7a62dfd15","bugs":{"url":"https://github.com/develon2015/Youtube-dl-REST/issues"},"_id":"@develon/youtube-dl-rest@1.0.0","_nodeVersion":"16.20.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-+HHhLywmyjOS6Q2N2tolDQ0pDkZkAceAlbO12eNtb9GpfNL95p2H48klpwMzmdSKdaIqHXza/a3bo9mpFf5c3Q==","shasum":"8b69ee16d64e8e0e1457da816dc8707f5fc5c568","tarball":"https://registry.npmjs.org/@develon/youtube-dl-rest/-/youtube-dl-rest-1.0.0.tgz","fileCount":15,"unpackedSize":375951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgWfZMDy/jYqu+BlJWCcsChn61BQXiIbn/ROoXtOJ5vAIhAOUIlVcxa5VnW5DE2YI7alyCSXXiEHWwLh2C0b7Z2RNX"}]},"_npmUser":{"name":"develon","email":"develon@qq.com"},"directories":{},"maintainers":[{"name":"develon","email":"develon@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/youtube-dl-rest_1.0.0_1709103446188_0.5586619810656963"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-28T06:57:26.093Z","1.0.0":"2024-02-28T06:57:26.360Z","modified":"2024-02-28T06:57:26.859Z"},"maintainers":[{"name":"develon","email":"develon@qq.com"}],"description":"Website for downloading Youtube & BiliBili videos","homepage":"https://github.com/develon2015/Youtube-dl-REST","repository":{"type":"git","url":"git+https://github.com/develon2015/Youtube-dl-REST.git"},"bugs":{"url":"https://github.com/develon2015/Youtube-dl-REST/issues"},"license":"MIT","readme":"# Youtube-dl-REST\n\n通过本项目，您可以搭建一个网页，快速下载各种Youtube、Bili视频。\n在线地址：[https://y2b.455556.xyz](https://y2b.455556.xyz)\n\n\n## 安装\n\n如果您使用docker，推荐使用以下命令运行本项目：\n\n```\ndocker volume create vol\ndocker run -it -d --name youtube-dl-rest -p 80:80 -v vol:/Youtube-dl-REST imgxx/youtube-dl-rest\n```\n\n你可能需要修改 config.json 、替换自己的 cookies.txt 等文件，然后重启容器：\n\n```\nvi /var/lib/docker/volumes/vol/_data/config.json\nvi /var/lib/docker/volumes/vol/_data/cookies.txt\ndocker restart youtube-dl-rest\n```\n\n如果您不使用docker，则按以下步骤进行安装：\n\n### 1.安装Node.js\n\n以Ubuntu为例，使用snapd安装：\n```\nsudo apt install -y snapd\n\nsudo snap install core\nsudo snap install node --classic --channel=14\n\nnode -v\n```\n\n### 2.安装[yt-dlp](https://github.com/yt-dlp/yt-dlp)和[FFmpeg](https://github.com/yt-dlp/yt-dlp)\n\n确保`yt-dlp`命令和`ffmpeg`命令可用:\n```\nsudo yt-dlp -U\nffmpeg -version\n```\n\n### 3.克隆本项目\n\n克隆之后使用`npm`安装依赖模块：\n```\ngit clone https://github.com/develon2015/Youtube-dl-REST.git\ncd Youtube-dl-REST\nnpm install\n```\n\n### 4.启动项目\n\n您最好在screen或tmux中运行：\n```\nnpm start\n```\n\n\n## 更新记录\n\n<details>\n<summary>展开</summary>\n\n##### 很久之前\n\n1. 使用Kotlin实现了master分支\n\n##### 过了一段时间\n\n1. 使用Node.js重构\n2. 自动清理空间\n3. 支持视频标题作为文件名\n4. 添加黑名单, 以及Cookies, 避免Youtube 429响应\n\n##### 后来\n\n1. 添加外挂字幕下载功能\n2. 支持解析BiliBili\n\n##### 接着\n\n1. 下载引擎替换为yt-dlp\n2. 支持解析BiliBili字幕和弹幕\n3. 支持显示标题和封面\n\n</details>\n","readmeFilename":"README.md"}