Browse Source

make it work 6

master
calexil 5 years ago
parent
commit
4feda3a6fb
  1. 9
      bansheecheck.sh

9
bansheecheck.sh

@ -7,6 +7,13 @@ do @@ -7,6 +7,13 @@ do
title=$(banshee --query-title | sed 's/title: //')
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"
sleep 6
if $currentTrack != $track
$currentTrack = $track
curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
sleep 15
then
sleep 5
fi
done

Loading…
Cancel
Save