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}"