您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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 $track
  10. if [[ $currentTrack = "$track" ]]
  11. then
  12. sleep 30
  13. else
  14. currentTrack=$track
  15. curl --data "trackName=$currentTrack" https://bansheebot.herokuapp.com/endpoint
  16. fi
  17. done