m e t a d a t a

This commit is contained in:
vulpine 2020-07-15 22:47:24 +00:00
parent 8cc02b712c
commit 58123be548
3 changed files with 8 additions and 5 deletions

View File

@ -1,12 +1,13 @@
#!/bin/bash
echo "#EXTM3U"
# annotate:title="Title 1",artist="Artist 1":
#echo "#EXTM3U"
while [[ 1 ]]; do
read -p 'continue (^c to cancel)?'
SELSONG=$(fzf -q Music)
printf "#EXTINF:,"
echo "$SELSONG" | sed 's+Music/++'|sed ' s/_/ /g'|sed 's/....$//'
echo "$SELSONG" | sed 's+Music/++'|sed ' s/_/ /g'|sed 's/....$//' | awk -F' - ' '{print "annotate:title=\"" $2 "\",artist=\"" $1 "\":"}' | tr -d "\n"
echo "$SELSONG"
done

View File

@ -4,7 +4,8 @@ set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("server.telnet",true)
set("server.socket",true)
set("server.socket.path","radiosock.sock")
def apply_metadata(m) =
title = m["title"]

View File

@ -4,7 +4,8 @@ set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("server.telnet",true)
set("server.socket",true)
set("server.socket.path","radiosock.sock")
def apply_metadata(m) =
title = m["title"]