Browse Source

make it work 6

tags/Beta0.1
calexil 1 year ago
parent
commit
4feda3a6fb
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      bansheecheck.sh

+ 8
- 1
bansheecheck.sh View File

@@ -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