bool whisper_params_parse(int argc, char ** argv, whisper_params & params) {
for (int i = 1; i < argc; i++) {
std::string arg = argv[i];
-
+
if (arg == "-"){
params.fname_inp.push_back(arg);
continue;
}
-
+
if (arg[0] != '-') {
params.fname_inp.push_back(arg);
continue;
echo >&2 -e "${1-}"
}
-################################################################################
-# create a temporary directory to work in
-# set the temp_dir and temp_filename variables
-################################################################################
-temp_dir="$(mktemp -d ${SCRIPT_DIR}/tmp.XXXXXX)";
-temp_filename="${temp_dir}/yt-dlp-filename";
-
-################################################################################
-# for now we only take one argument
-# TODO: a for loop
-################################################################################
-source_url="${1}"
-
-
-title_name="";
-
-
cleanup() {
local -r clean_me="${1}";
check_requirements;
+################################################################################
+# create a temporary directory to work in
+# set the temp_dir and temp_filename variables
+################################################################################
+temp_dir="$(mktemp -d ${SCRIPT_DIR}/tmp.XXXXXX)";
+temp_filename="${temp_dir}/yt-dlp-filename";
+
+################################################################################
+# for now we only take one argument
+# TODO: a for loop
+################################################################################
+source_url="${1}"
+title_name="";
+
msg "Downloading VOD...";
################################################################################
-c:s mov_text \
-y "${title_name}-res.mp4";
-cleanup "${temp_dir}";
+#cleanup "${temp_dir}";
msg "Done! Your finished file is ready: ${title_name}-res.mp4";