Fix mkdir: cannot create directory : File name too long On linux file name max is 143 characters. Fix max name to 100 characters

This commit is contained in:
73k05 2020-03-05 23:43:53 +01:00
parent 1dfd8ae755
commit 2d5902ed6e

View File

@ -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