aboutsummaryrefslogtreecommitdiff
path: root/create_metadata_show.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-11 07:37:10 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-11 07:37:10 +0300
commitbb1a59136a0100b7c41779953e6a447e48dd818a (patch)
tree3c267d8280eaf807761a0278616baebcecf76008 /create_metadata_show.sh
parentdc9b4c648b7e9bfa132fc693e71e0671e3af2727 (diff)
downloadarching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.tar.gz
arching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.tar.bz2
arching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.zip
Minor fix
Diffstat (limited to 'create_metadata_show.sh')
-rwxr-xr-xcreate_metadata_show.sh4
1 files 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)"