From 2d5902ed6e115d23068404e198e1eb94b1c7e942 Mon Sep 17 00:00:00 2001 From: 73k05 Date: Thu, 5 Mar 2020 23:43:53 +0100 Subject: [PATCH] Fix mkdir: cannot create directory : File name too long On linux file name max is 143 characters. Fix max name to 100 characters --- AAXtoMP3 | 1 + 1 file changed, 1 insertion(+) diff --git a/AAXtoMP3 b/AAXtoMP3 index bd75ff3..4818095 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -351,6 +351,7 @@ do genre=$(get_metadata_value genre) artist=$(get_metadata_value artist) title=$(get_metadata_value title | $SED 's/'\:'/'-'/g' | $SED 's/- /-/g' | xargs -0) + title=${title:0:100} if [ "x${targetdir}" != "x" ] ; then output_directory="${targetdir}/${genre}/${artist}/${title}" else