Unified · Split
| @@ -155,6 +155,8 @@ fi · 154 unmodified lines | ||
| 155 | 155 | METAFLAC="metaflac --no-utf8-convert" |
| 156 | 156 | VORBISCOMMENT="vorbiscomment -R -a" |
| 157 | 157 | ID3TAG="id3tag -2" |
| 158 | +GETTAG="cueprint -n 1 -t" | |
| 159 | +VALIDATE="sed s/[^-[:space:][:alnum:]&_#,.'\"]//g" | |
| 158 | 160 | |
| 159 | 161 | # check & print output format |
| 160 | 162 | msg_format="${cG}Output format :$cZ" |
| @@ -262,9 +264,6 @@ split_file ( ) { · 101 unmodified lines | ||
| 262 | 264 | fi |
| 263 | 265 | fi |
| 264 | 266 | |
| 265 | − GETTAG="cueprint -n 1 -t" | |
| 266 | − VALIDATE="sed s/[^-[:space:][:alnum:]&_#,.'\"]//g" | |
| 267 | − | |
| 268 | 267 | # get common tags |
| 269 | 268 | TAG_ARTIST=$(${GETTAG} %P "${CUE}") |
| 270 | 269 | TAG_ALBUM=$(${GETTAG} %T "${CUE}") |