Files
Server-scripts/audiobook_metadata/metadata_ffmpeg_series.sh
T

29 lines
581 B
Bash
Raw Normal View History

2026-07-16 10:54:46 +02:00
#!/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
2026-08-19 11:23:02 +02:00
/home/lucas/scripts/.venv/bin/python \
/home/lucas/scripts/ffmpeg_handling.py \
2026-07-16 10:54:46 +02:00
ms "$name" \
--override \
-k grouping \
-v "$series #$num" \
"$@"
done