Browse Source

Quick tool for creating folders from .vtt files for Twitch.

multiline-changes-MD4CE-2024-10-22-human-genome
Soothspider 1 year ago
parent
commit
5674d4c0b4
  1. 5
      tools/twitch_move_vtt.sh

5
twitch/layout.sh → tools/twitch_move_vtt.sh

@ -21,9 +21,9 @@ done
for ((i = 0; i < ${#files[@]}; i++)); do for ((i = 0; i < ${#files[@]}; i++)); do
suffix="" suffix=""
file="${files[$i]}" file="${files[$i]}"
echo processing: $file echo processing: $file
base="${file%.*}" base="${file%.*}"
[[ "$base" =~ .*"fixed"$ ]] && base="${base%.*}" && suffix=".fixed" [[ "$base" =~ .*"fixed"$ ]] && base="${base%.*}" && suffix=".fixed"
@ -38,6 +38,7 @@ for ((i = 0; i < ${#files[@]}; i++)); do
[ ! -d "${folder}" ] && mkdir -v "${folder}" [ ! -d "${folder}" ] && mkdir -v "${folder}"
mv -vi "${file}" "${folder}/${target}" mv -vi "${file}" "${folder}/${target}"
echo
# printf "\n base: $base \n date: $date \n id: $id \n stream: $stream \n" # printf "\n base: $base \n date: $date \n id: $id \n stream: $stream \n"
# printf " folder: $folder \n target: $target \n\n" # printf " folder: $folder \n target: $target \n\n"
Loading…
Cancel
Save