From a3b14452ef198f408b9c57adbbf3959ba8b54ca3 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Wed, 6 Dec 2023 15:30:20 +0000 Subject: [PATCH] feat(bk-copy-rand-music):Support eac3 (Enhanced AC-3 Dolby Plus) --- user/bk-copy-rand-music | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/bk-copy-rand-music b/user/bk-copy-rand-music index 2303d50..7a7d299 100755 --- a/user/bk-copy-rand-music +++ b/user/bk-copy-rand-music @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Desc: Copies random audio files # Usage: bk-copy-rand-music [dir SOURCE] [dir DEST] [int DURATION] ([int BYTES]) -# Version: 0.3.0 +# Version: 0.4.0 # Depends: BK-2020-03: bkshuf v0.1.0 declare -Ag appRollCall # Associative array for storing app status @@ -10,7 +10,7 @@ declare -Ag dirRollCall # Associative array for storing dir status declare -a music_codecs # Array for storing valid codec names (e.g. "aac" "mp3") # Adjustable parameters -music_codecs=("vorbis" "aac" "mp3" "flac" "opus"); # whitelist of valid codec_names ffprobe might return +music_codecs=("vorbis" "aac" "mp3" "flac" "opus" "eac3"); # whitelist of valid codec_names ffprobe might return ext_ignore=".ots\$|.mid\$|.json\$|.gz\$|.jpg\$|.png\$|.asc\$|.pdf\$|.txt\$|.vtt\$|\.SUM|.zip\$|.xz\$|.org\$|.txt\$"; # blacklist of file extensions for 'grep -Evi' max_filename_length="255"; # max output filename length min_file_duration="30"; # minimum duration per music file -- 2.30.2