2026-04-01_20-02-29Z_Wednesday

This commit is contained in:
Ken Fallon
2026-04-01 22:02:29 +02:00
parent 08688581b3
commit e03f3696b0

View File

@@ -92,7 +92,7 @@ function program_checks() {
done
}
is_installed audio2image.bash awk base64 cat csvtojson curl date eval extract_images ffprobe ffmpeg file find fix_tags grep head jq kate magick mediainfo mv realpath remove-image.pl rsync seamonkey sed sed sort sponge ssh touch touch wget hpr-check-ccdn-links xmlstarlet
is_installed audio2image.bash awk base64 cat csvtojson curl date eval exiftool extract_images ffprobe ffmpeg file find fix_tags grep head jq kate magick mediainfo mv ${piper_bin} realpath remove-image.pl rsync seamonkey sed sed sort sponge ssh touch touch wget hpr-check-ccdn-links xmlstarlet
for arg in $*
do
@@ -1047,8 +1047,6 @@ function media_checks() {
echo_error "Could not find the subtitles for media \"${media}\" in \"${shownotes_srt}\""
fi
#TODO fix close duration
# Find duration
duration=$( mediainfo --full --Output=JSON "${media}" | jq --raw-output '.media.track | .[] | select(."@type"=="Audio") | .Duration' | awk -F '.' '{print $1}' )
if [[ -z "${duration}" || "${duration}" -lt "30" || "${duration}" -gt "30000" ]]
@@ -1057,10 +1055,6 @@ function media_checks() {
fi
echo_debug "The Duration is \"${duration}\" seconds from \"${media}\""
#TODO fix close duration
# Find number of channels ( 1=mono or 2=stereo)
supplied_channels=$( mediainfo --full --Output=JSON "${media}" | jq --raw-output '.media.track | .[] | select(."@type"=="Audio") | .Channels' )
if [[ -z "${supplied_channels}" || "${supplied_channels}" -lt "1" || "${supplied_channels}" -gt "2" ]]