Support binary payloads when downloading an m3u8

This commit is contained in:
Michael Campagnaro 2023-10-05 16:18:38 -04:00
parent abbcd76178
commit 8ad4d67d84

View File

@ -953,7 +953,7 @@ download_mp4_from_m3u8() {
fi fi
printf "${BOLD}Downloading: ${YELLOW}$filename${NORMAL}\n" printf "${BOLD}Downloading: ${YELLOW}$filename${NORMAL}\n"
ffmpeg.exe -protocol_whitelist file,https,crypto,tls,tcp -i $m3u8_path -acodec copy -vcodec copy "${filename}.mp4" ffmpeg.exe -protocol_whitelist file,data,https,crypto,tls,tcp -allowed_extensions ALL -i $m3u8_path -acodec copy -vcodec copy "${filename}.mp4"
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
error "Error: failed to download." error "Error: failed to download."