-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYouTube Downloader.bat
79 lines (72 loc) · 1.42 KB
/
YouTube Downloader.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@ECHO off
call config\config.bat
set dlselect=0
:selection
set dlselect=0
set audio=""
cls
color 07
type dialog\welcome.txt
echo ====================================================
echo Please select your action:
echo -
echo 1) Download Video files
echo 2) Download Audio files
echo -
echo 3) Update tools
echo ====================================================
echo.
set /p sel=Enter selection:
if "%sel%"=="1" (
set audio=false
set welcomemsg=video
goto :begin
) else (
echo wrong selection
)
if "%sel%"=="2" (
set audio=true
set welcomemsg=audio
goto :begin
) else (
echo wrong selection
)
if "%sel%"=="3" goto :sel3
:begin
cls
color 07
type dialog\%welcomemsg%.txt
echo ====================================================
echo Please select your action:
echo -
echo 1) Download single file
echo 2) Download multiple files using data.txt
echo 3) Download multiple files using a custom .txt
echo 4) Download a whole YouTube Playlist
echo -
echo 5) Go back to selection
echo ====================================================
echo.
set /p op=Enter selection:
if "%op%"=="1" or "2" or "3" or "4" (
set dlselect=option%op%
call scripts\downloader.bat
cls
if %success%==false (
goto begin
) else (
call scripts\yt-success-m.bat
goto selection
)
) else if "%op%"=="5" (
call scripts\update.bat
cls
goto begin
) else (
echo Wrong selection
TIMEOUT 3
goto begin
)
)
:exit
@exit