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
68FORCE=068FORCE=0
69 69
70# do not forget to update before commit70# do not forget to update before commit
71VERSION=10871VERSION=109
72 72
73HELP="\${cG}split2flac version: ${VERSION}73HELP="\${cG}split2flac version: ${VERSION}
74Splits 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.74Splits 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 TAG_ALBUM=$(${GETTAG} %T "${CUE}" 2>/dev/null)409 TAG_ALBUM=$(${GETTAG} %T "${CUE}" 2>/dev/null)
410 TRACKS_NUM=$(${GETTAG} %N "${CUE}" 2>/dev/null)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 # we can check the difference between what cuebreakpoints and cueprint gives us413 # we can check the difference between what cuebreakpoints and cueprint gives us
414 BREAKPOINTS_NUM=$(($(cuebreakpoints "${CUE}" 2>/dev/null | wc -l) + 1))414 BREAKPOINTS_NUM=$(($(cuebreakpoints "${CUE}" 2>/dev/null | wc -l) + 1))
415 415
@@ -489,7 +489,9 @@ split_file () { · 73 unmodified lines
489 esac489 esac
490 490
491 # split to tracks491 # 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 cuebreakpoints "${CUE}" 2>/dev/null | \493 cuebreakpoints "${CUE}" 2>/dev/null | \
494 sed 's/$/0/' | \
493 shnsplit -O never -o "${ENC}" -d "${OUT}" -t "%n" "${FILE}"495 shnsplit -O never -o "${ENC}" -d "${OUT}" -t "%n" "${FILE}"
494 if [ $? -ne 0 ]; then496 if [ $? -ne 0 ]; then
495 emsg "Failed to split\n"497 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