2026-04-01_20-02-29Z_Wednesday

This commit is contained in:
2026-04-01 22:03:03 +02:00
parent 08688581b3
commit d7cc495d9a

View File

@@ -92,7 +92,7 @@ function program_checks() {
done 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 $* for arg in $*
do do
@@ -1047,8 +1047,6 @@ function media_checks() {
echo_error "Could not find the subtitles for media \"${media}\" in \"${shownotes_srt}\"" echo_error "Could not find the subtitles for media \"${media}\" in \"${shownotes_srt}\""
fi fi
#TODO fix close duration
# Find duration # Find duration
duration=$( mediainfo --full --Output=JSON "${media}" | jq --raw-output '.media.track | .[] | select(."@type"=="Audio") | .Duration' | awk -F '.' '{print $1}' ) 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" ]] if [[ -z "${duration}" || "${duration}" -lt "30" || "${duration}" -gt "30000" ]]
@@ -1057,10 +1055,6 @@ function media_checks() {
fi fi
echo_debug "The Duration is \"${duration}\" seconds from \"${media}\"" echo_debug "The Duration is \"${duration}\" seconds from \"${media}\""
#TODO fix close duration
# Find number of channels ( 1=mono or 2=stereo) # 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' ) 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" ]] if [[ -z "${supplied_channels}" || "${supplied_channels}" -lt "1" || "${supplied_channels}" -gt "2" ]]