-
Notifications
You must be signed in to change notification settings - Fork 13
/
Youtube-download-batch.bat
78 lines (56 loc) · 1.38 KB
/
Youtube-download-batch.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
@echo off
:start
cls
echo Made with love by Lettly
echo.
cd Setting
for /f "tokens=* delims=" %%x in (DirToSave.txt) do set dir=%%x
if %dir%== goto errset
for /f "tokens=* delims=" %%x in (DownloadCopy.txt) do set dow=%%x
if %dow%==Y goto start2
if %dow%==y goto start2
if %dow%=="" goto errset
for /f "tokens=* delims=" %%x in (Mp3_OR_Mp4.txt) do set mp=%%x
if %mp%==mp4 goto mp4
if %mp%==Mp4 goto mp4
if %mp%==mP4 goto mp4
if %mp%==MP4 goto mp4
if %mp%==video goto mp4
if %mp%==Video goto mp4
if %mp%==VIDEO goto mp4
goto start1
:mp4
cd ..
cd Lib
set /p id="Enter video url: "
echo.
youtube-dl -F %id%
echo.
set /p qua="Select video quality: "
youtube-dl -f %qua% -o %dir%\%%(title)s.%%(ext)s %id%
echo.
pause
cd ..
goto start
:start2
cd ..
cd Lib
set /p id="Enter video url: "
youtube-dl --extract-audio --audio-format "mp3" --audio-quality 0 --youtube-skip-dash-manifest -o Download\%%(title)s.%%(ext)s %id%
youtube-dl --extract-audio --audio-format "mp3" --audio-quality 0 --youtube-skip-dash-manifest -o %dir%\%%(title)s.%%(ext)s %id%
pause
cd ..
goto start
:start1
cd ..
cd Lib
set /p id="Enter video url: "
youtube-dl --extract-audio --audio-format "mp3" --audio-quality 0 --youtube-skip-dash-manifest -o %dir%\%%(title)s.%%(ext)s %id%
pause
cd ..
goto start
:errset
echo This is an empty file in the folder setting, please fill out correctly all the settings
echo.
pause
goto start