-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (46 loc) · 1.76 KB
/
Makefile
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
.PHONY: output clean
.DEFAULT_GOAL := output
output: input/subs.info.json input/auto-subs.info.json
node src/convert
input/subs.info.json:
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format srv3/ttml/vtt \
--output "input/subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format ttml \
--output "input/subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format vtt \
--output "input/subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
input/auto-subs.info.json:
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format srv3/ttml/vtt --write-auto-sub \
--output "input/auto-subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format ttml --write-auto-sub \
--output "input/auto-subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
youtube-dl --continue --retries 5 --write-info-json \
--no-check-certificate --ignore-errors \
--no-overwrites --skip-download \
--all-subs --sub-format vtt --write-auto-sub \
--output "input/auto-subs.%(ext)s" \
"https://www.youtube.com/watch?v=hB7aGnfLB-8"
clean:
rm -f ./input/*
rm -f ./debug/*
rm -f ./output/*