mirror of
https://github.com/GigaohmBiological/Stream.Transcripts.git
synced 2026-01-18 11:04:06 +00:00
Quick tool for creating folders from .vtt files for Twitch.
This commit is contained in:
@@ -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"
|
||||||
Reference in New Issue
Block a user