From 9becdcc826d3756883e2b82d01464cb419b11c0e Mon Sep 17 00:00:00 2001 From: celso Date: Thu, 15 Jun 2023 15:10:37 -0300 Subject: [PATCH] fixed stray " in duration field --- getvods.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getvods.sh b/getvods.sh index 1db54ac..31da19f 100755 --- a/getvods.sh +++ b/getvods.sh @@ -141,7 +141,7 @@ done < <(grep -o '"title":"\(\\"\|[^"]*\)*",' "${CFG_DIR}/streamarchives.json") j=0 while IFS= read -r i; do - duration[${j}]="${i:11:-1}" + duration[${j}]="${i:12:-1}" j+=1 done < <(grep -o "\"duration\":\"[a-z0-9]\+\"" "${CFG_DIR}/streamarchives.json")