From 7d7c8980ee8a71b3344537a0800ee0446173a614 Mon Sep 17 00:00:00 2001 From: tosu Date: Sun, 5 Mar 2023 21:27:57 +0100 Subject: [PATCH] Remove -- from ffmpeg command since it doesn't make sense --- downloadBash.sh | 2 +- downloadPOSIX.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/downloadBash.sh b/downloadBash.sh index 3f8ffc6..d6cdd9d 100755 --- a/downloadBash.sh +++ b/downloadBash.sh @@ -80,7 +80,7 @@ for m3u8_manifest_url_and_metadata in ${m3u8_manifest_urls_and_metadata}; do -i "${m3u8_manifest_url}" \ -progress - \ -codec copy \ - -- "${filepath}" | + "${filepath}" | grep --line-buffered 'out_time=' | sed -u -e 's/out_time=//g' -e 's/\..*//g' -e 's/^-//g' | xargs -I{} printf "{} of ${length} \r" diff --git a/downloadPOSIX.sh b/downloadPOSIX.sh index c89656a..346cad4 100755 --- a/downloadPOSIX.sh +++ b/downloadPOSIX.sh @@ -118,13 +118,13 @@ do printf '\033[32m%s\033[m\n' "Download '${filepath}' (${idx}/${total})" - ffmpeg -hide_banner \ + ffmpeg -hide_banner \ -loglevel error \ -headers "authorization: Bearer ${BASE64_BEARER_TOKEN}" \ -i "${m3u8_manifest_url}" \ -progress - \ -c copy \ - -- "${filepath}" | + "${filepath}" | grep --line-buffered 'out_time=' | sed -u -e 's/out_time=//g' -e 's/\..*//g' -e 's/^-//g' | xargs -I{} printf '%s\r' "{} of ${length} "