From 67e8a808b75d034874e789fc7350fc51390b6019 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 27 Aug 2023 23:31:41 +0530 Subject: [PATCH] download links individually (as opposted to a "batch") to discover which video failed and why --- get-from-yt.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/get-from-yt.sh b/get-from-yt.sh index 06f8b94..e7a52a1 100755 --- a/get-from-yt.sh +++ b/get-from-yt.sh @@ -4,9 +4,12 @@ set -xeu [ -d out ] && rm -rf out mkdir out -yt-dlp \ - --config-location "${HOME}/.config/yt-dlp/norm_config" \ - --external-downloader aria2c \ - --no-write-subs \ - --paths out \ - --batch-file links +while read -r LINK; do + yt-dlp \ + --config-location "${HOME}/.config/yt-dlp/norm_config" \ + --external-downloader aria2c \ + --no-write-subs \ + --paths out \ + "${LINK}" + sync +done < links