-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bat
59 lines (52 loc) · 1.31 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
title SycerNetwork-Lite Download Youtube
:End
if exist youtube-dl.exe (
echo CheckFile There is a program youtube-dl.exe.
) else (
echo There is no program youtube-dl.exe Download.
powershell -Command "Invoke-WebRequest https://youtube-dl.org/downloads/latest/youtube-dl.exe -OutFile youtube-dl.exe"
cls
echo CheckFile There is a program youtube-dl.exe.
)
echo ===========================
echo SycerNetwork-Lite Download Youtube
echo For No
echo 1 Chack
echo 2 Download MP4
echo 3 Download MP3
echo ===========================
echo Import Text
set /p url=Url :
set /p no=No :
IF %no% ==1 GOTO Label1
IF %no% ==2 GOTO Label2
IF %no% ==3 GOTO Label3
cls
echo Error
color 0e
set /p exit=Exit y/n :
:Label1
echo %url%
youtube-dl.exe -F %url%
set /p exit=Exit y/n :
IF %exit% ==y exit
IF %exit% ==n GOTO End
:Label2
echo ===========================
echo Download
echo %url%
youtube-dl.exe --format "bestvideo+bestaudio[ext=m4a]/bestvideo+bestaudio/best" --merge-output-format mp4 %url%
echo ===========================
set /p exit=Exit y/n :
IF %exit% ==y exit
IF %exit% ==n GOTO End
:Label3
echo ===========================
echo Download
echo %url%
youtube-dl.exe -x --audio-format mp3 --encoding utf8 %url%
echo ===========================
set /p exit=Exit y/n :
IF %exit% ==y exit
IF %exit% ==n GOTO End