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=108 | |
| 71 | +VERSION=109 | |
| 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. |
| @@ -409,7 +409,7 @@ split_file () { · 334 unmodified lines | ||
| 409 | 409 | TAG_ALBUM=$(${GETTAG} %T "${CUE}" 2>/dev/null) |
| 410 | 410 | TRACKS_NUM=$(${GETTAG} %N "${CUE}" 2>/dev/null) |
| 411 | 411 | |
| 412 | − # some cue sheets may have non-audio tracks (see issue #12) | |
| 412 | + # some cue sheets may have non-audio tracks | |
| 413 | 413 | # we can check the difference between what cuebreakpoints and cueprint gives us |
| 414 | 414 | BREAKPOINTS_NUM=$(($(cuebreakpoints "${CUE}" 2>/dev/null | wc -l) + 1)) |
| 415 | 415 | |
| @@ -489,7 +489,9 @@ split_file () { · 73 unmodified lines | ||
| 489 | 489 | esac |
| 490 | 490 | |
| 491 | 491 | # split to tracks |
| 492 | + # sed expression is a fix for "shnsplit: error: m:ss.ff format can only be used with CD-quality files" | |
| 492 | 493 | cuebreakpoints "${CUE}" 2>/dev/null | \ |
| 494 | + sed 's/$/0/' | \ | |
| 493 | 495 | shnsplit -O never -o "${ENC}" -d "${OUT}" -t "%n" "${FILE}" |
| 494 | 496 | if [ $? -ne 0 ]; then |
| 495 | 497 | emsg "Failed to split\n" |