Compare commits

..

3 Commits

Author SHA1 Message Date
Vincent Riquer
f738ce4568 fix quoting issue 2026-01-16 03:47:46 +01:00
Vincent Riquer
18016f86c9 v1.0.5 changelog 2026-01-16 03:47:46 +01:00
ScriptFanix
12507b1e1a Resolve "Store dest filename relative" 2026-01-16 03:47:23 +01:00
4 changed files with 37 additions and 35 deletions

View File

@ -1,13 +1,12 @@
# DEV # 1.0.5
### 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 * Store transcoded file paths relative to their destination's root (db version 7)
* Add missing error codes (used but not declared) * Add missing (used but not declared) error codes
* 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,13 +1,15 @@
#!/bin/bash #!/bin/bash
copyFiles_matching() { copyFiles_matching() {
extension="${filename##*.}" local extension="${filename##*.}"
if \
cp -al \ cp -al \
"$sourcepath/$filename" \ "$sourcepath/$filename" \
"$destdir/$destfile.$extension" \ "${destinationpath[$destination]}/$destdir/$destfile.$extension" \
2>/dev/null \ 2>/dev/null \
|| cp -a \ || cp -a \
"$sourcepath/$filename" \ "$sourcepath/$filename" \
"$destdir/$destfile.$extension" "${destinationpath[$destination]}/$destdir/$destfile.$extension"
then
echo \ echo \
"UPDATE destination_files" \ "UPDATE destination_files" \
"SET filename=" \ "SET filename=" \
@ -23,11 +25,12 @@ 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 "$destdir" ] if ! [ -d "${destinationpath[$destination]}/$destdir" ]
then then
mkdir -p "${destinationpath[$destination]}/$destdir" mkdir -p "${destinationpath[$destination]}/$destdir"
fi fi