From bb1a59136a0100b7c41779953e6a447e48dd818a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Oct 2024 07:37:10 +0300 Subject: Minor fix --- create_metadata_show.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_metadata_show.sh b/create_metadata_show.sh index e447661..9436b70 100755 --- a/create_metadata_show.sh +++ b/create_metadata_show.sh @@ -47,8 +47,8 @@ then exit 1 fi -artist="$(ogginfo ${filename} | grep -i ARTIST | cut -d '=' -f 2-)" -title="$(ogginfo ${filename} | grep -i TITLE | cut -d '=' -f 2-)" +artist="$(ogginfo ${filename} | grep -i ARTIST | tail -n 1 | cut -d '=' -f 2-)" +title="$(ogginfo ${filename} | grep -i TITLE | tail -n 1 | cut -d '=' -f 2-)" duration="$(ogginfo ${filename} | grep 'Playback length' | cut -d ':' -f 2-)" published_on="$(date -u +%s)000" dmins="$(echo ${duration}|cut -d 'm' -f 1)" -- cgit v1.2.3