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.

bansheecheck.sh 575B

12345678910111213141516171819
  1. #!/bin/bash
  2. currentTrack="Calexil is listening to $title by $artist on $album"
  3. while :
  4. do
  5. title=$(banshee --query-title | sed 's/title: //')
  6. artist=$(banshee --query-artist | sed 's/artist: //')
  7. album=$(banshee --query-album | sed 's/album: //')
  8. track="Calexil is listening to $title by $artist on $album"
  9. echo "Calexil is listening to $title by $artist on $album"
  10. if $currentTrack != "$track"
  11. currentTrack=$track
  12. curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
  13. sleep 15
  14. then
  15. sleep 5
  16. fi
  17. done