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
6666 FORCE=0
6767
6868 # do not forget to update before commit
69−VERSION=91
69+VERSION=92
7070
7171 HELP="\${cG}split2flac version: ${VERSION}
7272 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.
@@ -398,7 +398,7 @@ split_file () { · 325 unmodified lines
398398 fi
399399
400400 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/')
402402
403403 YEAR=$(awk '{ if (/REM[ \t]+DATE/) { printf "%i", $3; exit } }' < "${CUE}")
404404 YEAR=$(echo ${YEAR} | tr -d -c '[:digit:]')
@@ -416,8 +416,8 @@ split_file () { · 11 unmodified lines
416416 $msg "${cG}Tracks :$cZ ${TRACKS_NUM}\n\n"
417417
418418 # those tags won't change, so update the pattern now
419− DIR_ARTIST=$(echo ${TAG_ARTIST} | ${VALIDATE})
420− DIR_ALBUM=$(echo ${TAG_ALBUM} | ${VALIDATE})
419+ DIR_ARTIST=$(echo "${TAG_ARTIST}" | ${VALIDATE})
420+ DIR_ALBUM=$(echo "${TAG_ALBUM}" | ${VALIDATE})
421421 PATTERN=$(update_pattern "${OUTPATTERN}" "artist" "${DIR_ARTIST}")
422422 PATTERN=$(update_pattern "${PATTERN}" "album" "${DIR_ALBUM}")
423423 PATTERN=$(update_pattern "${PATTERN}" "year" "${TAG_DATE}")
@@ -482,7 +482,7 @@ split_file () { · 58 unmodified lines
482482 while [ $i -le ${TRACKS_NUM} ]; do
483483 TAG_TITLE=$(cueprint -n $i -t %t "${CUE}" 2>/dev/null)
484484 FILE_TRACK="$(printf %02i $i)"
485− FILE_TITLE=$(echo ${TAG_TITLE} | ${VALIDATE})
485+ FILE_TITLE=$(echo "${TAG_TITLE}" | ${VALIDATE})
486486 f="${OUT}/${FILE_TRACK}.${FORMAT}"
487487
488488 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