From 7be5ee8749a3c523657d0a9cad2ab725f4354839 Mon Sep 17 00:00:00 2001 From: fabh2o Date: Fri, 5 Feb 2021 10:37:23 +0100 Subject: [PATCH] extract only some tags, not all --- AAXtoMP3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 25ca161..8bd6eda 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -327,8 +327,17 @@ save_metadata() { media_file="$1" ffprobe -i "$media_file" 2> "$metadata_file" if [[ $(type -P mediainfo) ]]; then + echo "Mediainfo data START" >> "$metadata_file" # Mediainfo output is structured like ffprobe, so we append it to the metadata file and then parse it with get_metadata_value() - mediainfo "$media_file" >> "$metadata_file" + # mediainfo "$media_file" >> "$metadata_file" + # Or we only get the data we are intrested in: + # Description + echo "Track_More :" "$(mediainfo --Inform="General;%Track_More%" "$media_file")" >> "$metadata_file" + # Narrator + echo "nrt :" "$(mediainfo --Inform="General;%nrt%" "$media_file")" >> "$metadata_file" + # Publisher + echo "pub :" "$(mediainfo --Inform="General;%pub%" "$media_file")" >> "$metadata_file" + echo "Mediainfo data END" >> "$metadata_file" fi debug "Metadata file $metadata_file" debug_file "$metadata_file"