move files
move scripts
This commit is contained in:
1 parent
5cdbf51c1e
commit
408566b6ea
21 files changed
+53
No files matched your search
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <Series> [additional ffmpeg_handling.py args...]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
series="$1"
|
||||
shift
|
||||
|
||||
for d in */; do
|
||||
[ -d "$d" ] || continue
|
||||
name="${d%/}"
|
||||
|
||||
# extract leading number (int or float)
|
||||
if [[ $name =~ ([0-9]+([.,][0-9]+)?) ]]; then
|
||||
num="${BASH_REMATCH[1]}"
|
||||
else
|
||||
continue
|
||||
fi
|
||||
echo $d $num
|
||||
/home/lucas/scripts/.venv/bin/python \
|
||||
/home/lucas/scripts/ffmpeg_handling.py \
|
||||
ms "$name" \
|
||||
--override \
|
||||
-k grouping \
|
||||
-v "$series #$num" \
|
||||
"$@"
|
||||
done
|
||||
Reference in new issue
Block a user