commit 554db3142216efa5adb2833834c27608dfe6a3d2 parent 722ec4cf3b249dc6deecc86a163b1c90be6eea06 Author: Alex Balgavy <alex@balgavy.eu> Date: Wed, 13 Jan 2021 23:01:36 +0100 mp3-tags-to-folders: remove dots at end, Android don't like it Diffstat:
M | scripts/mp3-tags-to-folders | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/mp3-tags-to-folders b/scripts/mp3-tags-to-folders @@ -8,9 +8,9 @@ cd "$2" || die "Could not cd to $1" mkdir -p _failed || die "Directory ./_failed already exists" find "$1" -name "*.mp3" 2>/dev/null | \ while read -r i; do - artist="$(ffprobe -loglevel error -show_entries format_tags=artist -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '!@#$%^&*:?"' '_')" + artist="$(ffprobe -loglevel error -show_entries format_tags=artist -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '!@#$%^&*:?"' '_' | sed 's/\.\.*$//')" [ $? -eq 0 ] || { mv "$i" _failed/ && continue; } - album="$(ffprobe -loglevel error -show_entries format_tags=album -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '!@#$%^&*:?"' '_')" + album="$(ffprobe -loglevel error -show_entries format_tags=album -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '!@#$%^&*:?"' '_' | sed 's/\.\.*$//')" [ $? -eq 0 ] || { mv "$i" _failed/ && continue; } mkdir -p "$artist/$album" mv "$i" "$artist/$album"