mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Added big FAT metadata to DEBUG output.
This commit is contained in:
parent
cd60926a58
commit
e754e83b6b
12
AAXtoMP3
12
AAXtoMP3
@ -83,6 +83,16 @@ debug() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# debug dump contents of a file to STDOUT
|
||||||
|
debug_file() {
|
||||||
|
if [ $DEBUG == 1 ] ; then
|
||||||
|
echo "$(date "+%F %T%z") DEBUG"
|
||||||
|
echo "================================================================================"
|
||||||
|
cat "${1}"
|
||||||
|
echo "================================================================================"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# log
|
# log
|
||||||
log() {
|
log() {
|
||||||
echo "$(date "+%F %T%z") ${1}"
|
echo "$(date "+%F %T%z") ${1}"
|
||||||
@ -96,6 +106,8 @@ save_metadata() {
|
|||||||
local media_file
|
local media_file
|
||||||
media_file="$1"
|
media_file="$1"
|
||||||
ffprobe -i "$media_file" 2> "$metadata_file"
|
ffprobe -i "$media_file" 2> "$metadata_file"
|
||||||
|
debug "Metadata file $metadata_file"
|
||||||
|
debug_file "$metadata_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_metadata_value() {
|
get_metadata_value() {
|
||||||
|
Loading…
Reference in New Issue
Block a user