Compare commits

..

No commits in common. "f738ce45681f4160d3ee7018efc63e42c6bd6cec" and "9c2ff0fafba94b2efe2022158efc4599923a332f" have entirely different histories.

4 changed files with 35 additions and 37 deletions

View File

@ -1,12 +1,13 @@
# 1.0.5 # DEV
### BUGS (Minor) ### BUGS (Minor)
* `toys/createindex`: handle empty channel count, bitdepth and sampling rate cleanly * `toys/createindex`: handle empty channel count, bitdepth and sampling rate cleanly
### Enhancements ### Enhancements
* Allow ignoring microsecond precision in timestamps * Allow ignoring microsecond precision in timestamps
* Don't print useless information (stuff that handled 0 files and such) * Don't print useless information (stuff that handled 0 files and such)
* Store transcoded file paths relative to their destination's root (db version 7) * Store transcoded file paths relative to their destination's root
* Add missing (used but not declared) error codes * Add missing error codes (used but not declared)
* Support for newline character in filenames
# 1.0.4 # 1.0.4
## `BREAKING CHANGES` ## `BREAKING CHANGES`

10
atom
View File

@ -697,11 +697,11 @@ endtime=$EPOCHSECONDS
(( cron )) || echo -n $'\r' (( cron )) || echo -n $'\r'
(( ran )) \ (( ran )) \
&& echo -n "Ran $ran tasks${failed:+, $failed of which failed,}" \ && echo -n "Ran $ran tasks${failed:+, $failed of which failed,} \
"in ${days:+$days days,}" \ in ${days:+$days days,} \
"${hours:+$hours hours,}" \ ${hours:+$hours hours,} \
"${minutes:+$minutes minutes and}" \ ${minutes:+$minutes minutes and} \
"$seconds seconds." $seconds seconds."
(( cron )) || echo -en "\033[K" (( cron )) || echo -en "\033[K"
(( ran )) && echo (( ran )) && echo

View File

@ -1,15 +1,13 @@
#!/bin/bash #!/bin/bash
copyFiles_matching() { copyFiles_matching() {
local extension="${filename##*.}" extension="${filename##*.}"
if \
cp -al \ cp -al \
"$sourcepath/$filename" \ "$sourcepath/$filename" \
"${destinationpath[$destination]}/$destdir/$destfile.$extension" \ "$destdir/$destfile.$extension" \
2>/dev/null \ 2>/dev/null \
|| cp -a \ || cp -a \
"$sourcepath/$filename" \ "$sourcepath/$filename" \
"${destinationpath[$destination]}/$destdir/$destfile.$extension" "$destdir/$destfile.$extension"
then
echo \ echo \
"UPDATE destination_files" \ "UPDATE destination_files" \
"SET filename=" \ "SET filename=" \
@ -25,12 +23,11 @@ copyFiles_matching() {
" WHERE id=$destfileid" \ " WHERE id=$destfileid" \
" )," \ " )," \
" rename_pattern=" \ " rename_pattern=" \
"\"${destinationrenamepath[$destination]}/${destinationrename[$destination]}\","\ "\"${destinationrenamepath[$destination]}/${destinationrename[$destination]}\","\
" fat32compat=" \ " fat32compat=" \
"${destinationfat32compat["$destination"]}," \ "${destinationfat32compat["$destination"]}," \
" ascii=${destinationascii["$destination"]}"\ " ascii=${destinationascii["$destination"]}" \
"WHERE id=$destfileid;" \ "WHERE id=$destfileid;" \
>&3 >&3
(( ++copies )) (( ++copies ))
fi
} }

View File

@ -98,7 +98,7 @@ getDestDir() {
part=${part#*/} part=${part#*/}
done done
fi fi
if ! [ -d "${destinationpath[$destination]}/$destdir" ] if ! [ -d "$destdir" ]
then then
mkdir -p "${destinationpath[$destination]}/$destdir" mkdir -p "${destinationpath[$destination]}/$destdir"
fi fi