Unified · Split
| @@ -68,7 +68,7 @@ unset PIC INPATH CUE CHARSET · 67 unmodified lines | ||
| 68 | 68 | FORCE=0 |
| 69 | 69 | |
| 70 | 70 | # do not forget to update before commit |
| 71 | −VERSION=102 | |
| 71 | +VERSION=103 | |
| 72 | 72 | |
| 73 | 73 | HELP="\${cG}split2flac version: ${VERSION} |
| 74 | 74 | Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming. |
| @@ -422,8 +422,7 @@ split_file () { · 347 unmodified lines | ||
| 422 | 422 | return 1 |
| 423 | 423 | fi |
| 424 | 424 | |
| 425 | − TAG_GENRE=$(awk '{ if (/REM[ \t]+GENRE[ \t]+(.*)/) { print $0; exit } }' < "${CUE}") | |
| 426 | − TAG_GENRE=$(echo "${TAG_GENRE}" | sed 's/REM[ \t]\+GENRE[ \t]\+//;s/"\(.*\)"/\1/') | |
| 425 | + TAG_GENRE=$(sed 's/REM[ \t]*GENRE[ \t]*\(.*\)/\1/;s/"\(.*\)"/\1/;q' < "${CUE}") | |
| 427 | 426 | |
| 428 | 427 | YEAR=$(awk '{ if (/REM[ \t]+DATE/) { printf "%i", $3; exit } }' < "${CUE}") |
| 429 | 428 | YEAR=$(echo ${YEAR} | tr -d -c '[:digit:]') |