History

fix for shnsplit m:ss.ff format error

Serge Zirukin committed 14 years ago

Commit 11345e21 parent d77a30a1 file · +4 −2Browse files

Unified · Split

split2flac+4−2
@@ -68,7 +68,7 @@ unset PIC INPATH CUE CHARSET · 67 unmodified lines
6868 FORCE=0
6969
7070 # do not forget to update before commit
71−VERSION=108
71+VERSION=109
7272
7373 HELP="\${cG}split2flac version: ${VERSION}
7474 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
409409 TAG_ALBUM=$(${GETTAG} %T "${CUE}" 2>/dev/null)
410410 TRACKS_NUM=$(${GETTAG} %N "${CUE}" 2>/dev/null)
411411
412− # some cue sheets may have non-audio tracks (see issue #12)
412+ # some cue sheets may have non-audio tracks
413413 # we can check the difference between what cuebreakpoints and cueprint gives us
414414 BREAKPOINTS_NUM=$(($(cuebreakpoints "${CUE}" 2>/dev/null | wc -l) + 1))
415415
@@ -489,7 +489,9 @@ split_file () { · 73 unmodified lines
489489 esac
490490
491491 # split to tracks
492+ # sed expression is a fix for "shnsplit: error: m:ss.ff format can only be used with CD-quality files"
492493 cuebreakpoints "${CUE}" 2>/dev/null | \
494+ sed 's/$/0/' | \
493495 shnsplit -O never -o "${ENC}" -d "${OUT}" -t "%n" "${FILE}"
494496 if [ $? -ne 0 ]; then
495497 emsg "Failed to split\n"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t