From 68b8c325ab3cc26deda0115727547999895788bb Mon Sep 17 00:00:00 2001 From: tosu Date: Sun, 26 Feb 2023 18:40:17 +0100 Subject: [PATCH] Bugfix: sed replacement pattern was wrong idx -> INDEX --- download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.sh b/download.sh index efde900..f62fa48 100755 --- a/download.sh +++ b/download.sh @@ -22,7 +22,7 @@ m3u8_highest_res_url=$(curl -s "${m3u8_manifest_url}" | tail -n1 | rev | cut -c3 echo -e "\033[32mDownload video ${idx} of ${total}\033[m" -outfile="$(echo "${OUTFILE_PATTERN}" | sed "s/idx/${idx}/g")" +outfile="$(echo "${OUTFILE_PATTERN}" | sed "s/INDEX/${idx}/g")" # This doesn't work for some reason # ffmpeg -loglevel 24 -headers "authorization: Bearer ${BASE64_BEARER_TOKEN}" -i "${m3u8_highest_res_url}" -c copy "${outfile}"