diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-10-11 07:37:10 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-10-11 07:37:10 +0300 |
commit | bb1a59136a0100b7c41779953e6a447e48dd818a (patch) | |
tree | 3c267d8280eaf807761a0278616baebcecf76008 | |
parent | dc9b4c648b7e9bfa132fc693e71e0671e3af2727 (diff) | |
download | arching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.tar.gz arching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.tar.bz2 arching-kaos-radio-bb1a59136a0100b7c41779953e6a447e48dd818a.zip |
Minor fix
-rwxr-xr-x | create_metadata_show.sh | 4 |
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)" |