5d2db5ec63168ed8b2fa902c7e3f16eb379f20a7
[mpvhistory] / mpvgeminilog
1 #!/bin/bash
2 echo "My Listening History" > /mnt/geminiserver/gemini/listeninglog.gmi
3 sed -i '/{}/d' /home/frrobert/.config/mpv/mpvHistory.log
4 tac  /home/frrobert/.config/mpv/mpvHistory.log| grep -oP '\[\K[^\]]+|"Artist":"\K[^"]+|Title":"\K[^"]+' |paste - - -  >> /mnt/geminiserver/gemini/listeninglog.gmi
5
6 echo '=> index.gmi ..' >> /mnt/geminiserver/gemini/listeninglog.gmi