Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (17 sloc) 607 Bytes
#!/bin/bash
currentTrack="Calexil is listening to $title by $artist on $album"
while :
do
title=$(rhythmbox-client --no-start --print-playing-format %tt | sed 's/title: //')
artist=$(rhythmbox-client --no-start --print-playing-format %aa | sed 's/artist: //')
album=$(banshee --query-album | sed 's/album: //')
track="Calexil is listening to $title by $artist on $album"
echo $track
if [[ $currentTrack = "$track" ]]
then
sleep 30
else
currentTrack=$track
curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
fi
done
You can’t perform that action at this time.