dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e4b2fabbc30247e393f1157e5c7b446bef01c2b9
parent 0118d1473fa71e47787924c0ce80f5d7a7faa763
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 22 Jun 2022 11:43:27 +0200

mlm: add characters to tr

Diffstat:
Mscripts/mlm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mlm b/scripts/mlm @@ -123,7 +123,7 @@ organize_files() { while read -r i; do artist="$(ffprobe -loglevel error -show_entries format_tags=album_artist -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '+!@#$%^&*:?"\\>' '_' | sed 's/\.\.*$//')" [ -n "$artist" ] || { mv "$i" _failed/ && continue; } - album="$(ffprobe -loglevel error -show_entries format_tags=album -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '+!@#$%^&*:?>\\"' '_' | sed 's/\.\.*$//')" + album="$(ffprobe -loglevel error -show_entries format_tags=album -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '+!@#$%^&*:?>\\/"' '_' | sed 's/\.\.*$//')" [ -n "$album" ] || { mv "$i" _failed/ && continue; } mkdir -p "$artist/$album" printf "%s -> %s\n" "$i" "$artist/$album"