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