From 5674d4c0b478fdcf146c94d3923ac862338e706c Mon Sep 17 00:00:00 2001 From: Soothspider Date: Sat, 25 Nov 2023 20:04:24 -0800 Subject: [PATCH] Quick tool for creating folders from .vtt files for Twitch. --- twitch/layout.sh => tools/twitch_move_vtt.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename twitch/layout.sh => tools/twitch_move_vtt.sh (95%) diff --git a/twitch/layout.sh b/tools/twitch_move_vtt.sh similarity index 95% rename from twitch/layout.sh rename to tools/twitch_move_vtt.sh index a7c7c1a..fd9df56 100755 --- a/twitch/layout.sh +++ b/tools/twitch_move_vtt.sh @@ -21,9 +21,9 @@ done for ((i = 0; i < ${#files[@]}; i++)); do suffix="" - file="${files[$i]}" + file="${files[$i]}" - echo processing: $file + echo processing: $file base="${file%.*}" [[ "$base" =~ .*"fixed"$ ]] && base="${base%.*}" && suffix=".fixed" @@ -38,6 +38,7 @@ for ((i = 0; i < ${#files[@]}; i++)); do [ ! -d "${folder}" ] && mkdir -v "${folder}" mv -vi "${file}" "${folder}/${target}" + echo # printf "\n base: $base \n date: $date \n id: $id \n stream: $stream \n" # printf " folder: $folder \n target: $target \n\n"