Browse Source

beta 0.1

tags/Beta0.1
calexil 1 year ago
parent
commit
c032e1e611
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      bansheecheck.sh

+ 7
- 7
bansheecheck.sh View File

@@ -8,12 +8,12 @@ do
artist=$(banshee --query-artist | sed 's/artist: //')
album=$(banshee --query-album | sed 's/album: //')
track="Calexil is listening to $title by $artist on $album"
echo "Calexil is listening to $title by $artist on $album"
if [[ $currentTrack != "$track" ]]
currentTrack=$track
echo $track
if [[ $currentTrack = "$track" ]]
then
sleep 30
else
curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
sleep 25
then
sleep 5
fi
currentTrack=$track
fi
done

Loading…
Cancel
Save