History

take tags into doublequotes to avoid wildcarding. fixes issue #13

Serge Zirukin committed 15 years ago

Commit 1ccaefd1 parent 5798d281 file · +5 −5Browse files

Unified · Split

split2flac.sh+5−5
@@ -66,7 +66,7 @@ unset PIC INPATH CUE CHARSET · 65 unmodified lines
66FORCE=066FORCE=0
67 67
68# do not forget to update before commit68# do not forget to update before commit
69VERSION=9169VERSION=92
70 70
71HELP="\${cG}split2flac version: ${VERSION}71HELP="\${cG}split2flac version: ${VERSION}
72Splits 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.72Splits 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.
@@ -398,7 +398,7 @@ split_file () { · 325 unmodified lines
398 fi398 fi
399 399
400 TAG_GENRE=$(awk '{ if (/REM[ \t]+GENRE[ \t]+(.*)/) { print $0; exit } }' < "${CUE}")400 TAG_GENRE=$(awk '{ if (/REM[ \t]+GENRE[ \t]+(.*)/) { print $0; exit } }' < "${CUE}")
401 TAG_GENRE=$(echo ${TAG_GENRE} | sed 's/REM[ \t]\+GENRE[ \t]\+//;s/"\(.*\)"/\1/')401 TAG_GENRE=$(echo "${TAG_GENRE}" | sed 's/REM[ \t]\+GENRE[ \t]\+//;s/"\(.*\)"/\1/')
402 402
403 YEAR=$(awk '{ if (/REM[ \t]+DATE/) { printf "%i", $3; exit } }' < "${CUE}")403 YEAR=$(awk '{ if (/REM[ \t]+DATE/) { printf "%i", $3; exit } }' < "${CUE}")
404 YEAR=$(echo ${YEAR} | tr -d -c '[:digit:]')404 YEAR=$(echo ${YEAR} | tr -d -c '[:digit:]')
@@ -416,8 +416,8 @@ split_file () { · 11 unmodified lines
416 $msg "${cG}Tracks :$cZ ${TRACKS_NUM}\n\n"416 $msg "${cG}Tracks :$cZ ${TRACKS_NUM}\n\n"
417 417
418 # those tags won't change, so update the pattern now418 # those tags won't change, so update the pattern now
419 DIR_ARTIST=$(echo ${TAG_ARTIST} | ${VALIDATE})419 DIR_ARTIST=$(echo "${TAG_ARTIST}" | ${VALIDATE})
420 DIR_ALBUM=$(echo ${TAG_ALBUM} | ${VALIDATE})420 DIR_ALBUM=$(echo "${TAG_ALBUM}" | ${VALIDATE})
421 PATTERN=$(update_pattern "${OUTPATTERN}" "artist" "${DIR_ARTIST}")421 PATTERN=$(update_pattern "${OUTPATTERN}" "artist" "${DIR_ARTIST}")
422 PATTERN=$(update_pattern "${PATTERN}" "album" "${DIR_ALBUM}")422 PATTERN=$(update_pattern "${PATTERN}" "album" "${DIR_ALBUM}")
423 PATTERN=$(update_pattern "${PATTERN}" "year" "${TAG_DATE}")423 PATTERN=$(update_pattern "${PATTERN}" "year" "${TAG_DATE}")
@@ -482,7 +482,7 @@ split_file () { · 58 unmodified lines
482 while [ $i -le ${TRACKS_NUM} ]; do482 while [ $i -le ${TRACKS_NUM} ]; do
483 TAG_TITLE=$(cueprint -n $i -t %t "${CUE}" 2>/dev/null)483 TAG_TITLE=$(cueprint -n $i -t %t "${CUE}" 2>/dev/null)
484 FILE_TRACK="$(printf %02i $i)"484 FILE_TRACK="$(printf %02i $i)"
485 FILE_TITLE=$(echo ${TAG_TITLE} | ${VALIDATE})485 FILE_TITLE=$(echo "${TAG_TITLE}" | ${VALIDATE})
486 f="${OUT}/${FILE_TRACK}.${FORMAT}"486 f="${OUT}/${FILE_TRACK}.${FORMAT}"
487 487
488 TAG_PERFORMER=$(cueprint -n $i -t %p "${CUE}" 2>/dev/null)488 TAG_PERFORMER=$(cueprint -n $i -t %p "${CUE}" 2>/dev/null)

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