Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a65e429
Update
develon2015 Oct 5, 2020
99df105
README.md
Oct 5, 2020
3cedfed
README.md
Oct 5, 2020
74ba6b1
checkDisk()
Oct 5, 2020
5d0b127
catchSubtitle
Oct 5, 2020
41505a9
catchSubtitle bug fixed
Oct 6, 2020
805e656
subtest
Oct 6, 2020
fea9032
'误判Language formats行'
Oct 6, 2020
653833b
stash
Oct 6, 2020
58611dd
stash
Oct 8, 2020
d15bf47
stash
kotiln Oct 9, 2020
d12151f
locale
kotiln Oct 9, 2020
8d6ef15
index.js
kotiln Oct 9, 2020
59ea4ca
up
kotiln Oct 9, 2020
8eb3140
up
kotiln Oct 9, 2020
7758e99
subtitle
kotiln Oct 9, 2020
0f07c88
ffmpeg强制覆盖文件
kotiln Oct 9, 2020
cad01f7
up
kotiln Oct 9, 2020
d7c7866
index.html
kotiln Oct 9, 2020
35418b9
外挂字幕
kotiln Oct 9, 2020
7230921
index.js
kotiln Oct 9, 2020
f2d4910
README.md
kotiln Oct 9, 2020
51b3752
up
kotiln Oct 9, 2020
743b3a0
index.html
kotiln Oct 9, 2020
63dd56b
处理新标签页
Oct 11, 2020
5c5d6ba
youtube => y2b, youtu => y2
Oct 11, 2020
e80f26f
亲亲, 您的"链接已重置"
Oct 11, 2020
6bafd72
Bug:
Oct 11, 2020
41f97df
stash bilibili
Oct 11, 2020
551e0c4
BiliBili
kotiln Oct 12, 2020
2ab9861
bilibili
kotiln Oct 12, 2020
b73d841
up
Oct 13, 2020
beaefed
up
kotiln Oct 13, 2020
13e212b
up
kotiln Oct 13, 2020
0089273
B站视频文件名
kotiln Oct 13, 2020
ec6aa7f
"链接已重置"豪华套餐
kotiln Oct 13, 2020
ca487af
parsedTitle.flv
kotiln Oct 13, 2020
a875eec
还原y2b视频地址
kotiln Oct 13, 2020
f7dd3cb
README.md
kotiln Oct 13, 2020
2ad40a0
up
Oct 13, 2020
4e60565
blacked
Oct 13, 2020
f01d52b
up
Oct 13, 2020
76d0ebe
up
Oct 13, 2020
dc2d100
get IP
develon2015 Oct 14, 2020
3a37cb1
Content-Disposition
Oct 17, 2020
14f2e02
package.json
Oct 17, 2020
de38327
youtube-dl惨遭DMCA制裁
develon2015 Nov 3, 2020
dfc902d
DISABLE
develon2015 Dec 2, 2020
fa1b8c9
rm bilibili
kotiln Jan 11, 2021
d2345b0
rm
develon2015 Mar 9, 2021
4a7e85a
mv
invalid-email-address Sep 28, 2023
fa53dc7
yt-dlp
invalid-email-address Sep 28, 2023
be85602
danmaku
develon2015 Oct 1, 2023
d86f9ee
README.md
develon2015 Oct 2, 2023
483f4b8
适配B站分P视频
develon2015 Oct 4, 2023
0496dbb
update
develon2015 Oct 13, 2023
875d5b9
Update index.js
develon2015 Dec 18, 2023
2321700
添加Dockerfile
kotiln Jan 30, 2024
add38c7
tea
develon2015 Feb 28, 2024
79ba1f7
Update README.md
develon2015 Apr 8, 2025
62921f2
Update README.md
develon2015 Apr 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
tmp
bilibili
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:18.14
EXPOSE 80
RUN \
apt update && \
apt install -y git ffmpeg python && \
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/bin/yt-dlp && \
chmod +x /usr/bin/yt-dlp && \
git clone https://github.com/develon2015/Youtube-dl-REST /Youtube-dl-REST && \
cd /Youtube-dl-REST && \
npm i
WORKDIR /Youtube-dl-REST
CMD npm run start
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
# Youtube-dl-REST

## 概要
通过本项目,您可以搭建一个网页,快速下载各种Youtube、Bili视频。
在线地址:[https://y2b.455556.xyz](https://y2b.455556.xyz)

通过本项目,您可以搭建一个网页,快速下载您中意的Youtube视频。
在线地址:[https://y2b.123345.xyz](https://y2b.123345.xyz)

## 安装

如果您使用docker,推荐使用以下命令运行本项目:

```
docker volume create vol
docker run -it -d --name youtube-dl-rest -p 80:80 -v vol:/Youtube-dl-REST imgxx/youtube-dl-rest
```

你可能需要修改 config.json 、替换自己的 cookies.txt 等文件,然后重启容器:

```
vi /var/lib/docker/volumes/vol/_data/config.json
vi /var/lib/docker/volumes/vol/_data/cookies.txt
docker restart youtube-dl-rest
```

如果您不使用docker,则按以下步骤进行安装:

### 1.安装Node.js

以Ubuntu为例,使用snapd安装:
Expand All @@ -19,11 +35,11 @@ sudo snap install node --classic --channel=14
node -v
```

### 2.安装[youtube-dl](https://github.com/ytdl-org/youtube-dl)和[FFmpeg](https://github.com/FFmpeg/FFmpeg)
### 2.安装[yt-dlp](https://github.com/yt-dlp/yt-dlp)和[FFmpeg](https://github.com/yt-dlp/yt-dlp)

确保`youtube-dl`命令和`ffmpeg`命令可用:
确保`yt-dlp`命令和`ffmpeg`命令可用:
```
sudo youtube-dl -U
sudo yt-dlp -U
ffmpeg -version
```

Expand All @@ -44,3 +60,8 @@ npm start
```


## Sponsors

[![image](https://github.com/user-attachments/assets/dae292e1-3a99-4f6b-b423-4b973ef0d49b)](https://yxvm.com/)

[NodeSupport](https://github.com/NodeSeekDev/NodeSupport) 赞助了本项目
7 changes: 3 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"address": "127.0.0.1",
"port": 28888,
"disk": "/dev/sda2",
"address": "0.0.0.0",
"port": 80,
"cookie": "cookies.txt",
"blacklist": "blacklist.txt",
"mode": "演示模式"
"mode": "非演示模式(演示模式关闭转码功能)"
}
12 changes: 12 additions & 0 deletions cookies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Netscape HTTP Cookie File
# This file is generated by youtube-dl. Do not edit.

.youtube.com TRUE / TRUE 2146723198 CONSENT YES+JP.zh-CN+20161009-18-0
.youtube.com TRUE / FALSE 1601903974 GPS 1
.youtube.com TRUE / FALSE 1607086761 PREF f1=50000000&f6=8&hl=en
.youtube.com TRUE / TRUE 1617428183 VISITOR_INFO1_LIVE O3iKRKMJC5k
.youtube.com TRUE / TRUE 0 YSC IufRwdakY8s
.youtube.com TRUE / TRUE 1664974174 __Secure-3PAPISID ZISjGgE8830AXgFi/AIxubKg_gvkT_hcQg
.youtube.com TRUE / TRUE 1664974174 __Secure-3PSID 2AfUWLyxBONI8BjFvhuAig89T0Dhx0COSUkbHxkJJdfMFE5Dr4-z7hPHOVkqYWxgyT5geg.
.youtube.com TRUE / FALSE 0 s_gl 1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==
.youtube.com TRUE / FALSE 0 wide 1
5 changes: 0 additions & 5 deletions get-remote-ip.js

This file was deleted.

Loading