@@ -67,23 +67,6 @@ msg() {
67
67
echo >&2 -e " ${1-} "
68
68
}
69
69
70
- # ###############################################################################
71
- # create a temporary directory to work in
72
- # set the temp_dir and temp_filename variables
73
- # ###############################################################################
74
- temp_dir=" $( mktemp -d ${SCRIPT_DIR} /tmp.XXXXXX) " ;
75
- temp_filename=" ${temp_dir} /yt-dlp-filename" ;
76
-
77
- # ###############################################################################
78
- # for now we only take one argument
79
- # TODO: a for loop
80
- # ###############################################################################
81
- source_url=" ${1} "
82
-
83
-
84
- title_name=" " ;
85
-
86
-
87
70
cleanup () {
88
71
local -r clean_me=" ${1} " ;
89
72
145
128
146
129
check_requirements;
147
130
131
+ # ###############################################################################
132
+ # create a temporary directory to work in
133
+ # set the temp_dir and temp_filename variables
134
+ # ###############################################################################
135
+ temp_dir=" $( mktemp -d ${SCRIPT_DIR} /tmp.XXXXXX) " ;
136
+ temp_filename=" ${temp_dir} /yt-dlp-filename" ;
137
+
138
+ # ###############################################################################
139
+ # for now we only take one argument
140
+ # TODO: a for loop
141
+ # ###############################################################################
142
+ source_url=" ${1} "
143
+ title_name=" " ;
144
+
148
145
msg " Downloading VOD..." ;
149
146
150
147
# ###############################################################################
@@ -199,6 +196,6 @@ ffmpeg -i "${temp_dir}/${title_name}.vod.mp4" \
199
196
-c:s mov_text \
200
197
-y " ${title_name} -res.mp4" ;
201
198
202
- cleanup " ${temp_dir} " ;
199
+ # cleanup "${temp_dir}";
203
200
204
201
msg " Done! Your finished file is ready: ${title_name} -res.mp4" ;
0 commit comments