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
542 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 $track
if [[ $currentTrack = "$track" ]]
then
sleep 30
else
currentTrack=$track
curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
fi
done