aboutsummaryrefslogtreecommitdiff
path: root/create_metadata_show.sh
diff options
context:
space:
mode:
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)"