- commit
- 93f30dc
- parent
- f85ddb7
- author
- xxwhirlpool
- date
- 2026-03-08 14:52:21 -0400 EDT
vidhash confirm stuff
1 files changed,
+7,
-1
+7,
-1
1@@ -19,7 +19,13 @@ vidsubs() {
2 vidhash() {
3 # borrowed from my buddy neckspike:
4 # https://pastebin.com/mg3CVDiU
5- for f in *.mkv; do hash=$(crc32 "$f") ext="${f##*.}" newname="${f%.*} [$hash]".$ext && gum confirm "are you sure you want to rename?" && mv "$f" "$newname" || echo "printing names instead" && echo "$newname"; done
6+ for f in *.mkv; do
7+ hash=$(crc32 "$f")
8+ ext="${f##*.}"
9+ newname="${f%.*} [$hash]".$ext
10+
11+ gum confirm "are you sure you want to rename?" --default=yes --timeout=3s && mv "$f" "$newname" && echo -e "new name:\n$newname"|| echo -e "printing names instead:\n$newname"
12+ done
13 }
14
15 choice() {