You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
575 B

#!/bin/bash
currentTrack="Calexil is listening to $title by $artist on $album"
while :
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"
if $currentTrack != "$track"
currentTrack=$track
curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
sleep 15
then
sleep 5
fi
done