this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Now reads every 10 seconds

estym ecf70085 1d029dc8

+13 -4
+1
.gitignore
··· 1 + .vscode
+12 -4
main.go
··· 151 151 if err != nil { 152 152 panic(err) 153 153 } 154 - s := getCurrentSong() 155 - r := getInfos(s) 156 - t := recordToTeal(r, s) 157 154 158 - createPlay(client, t) 155 + var lastPlaying string 156 + for { 157 + s := getCurrentSong() 158 + if lastPlaying != s.Info.PlayParams.ID { 159 + lastPlaying = s.Info.PlayParams.ID 160 + r := getInfos(s) 161 + t := recordToTeal(r, s) 162 + 163 + createPlay(client, t) 164 + } 165 + time.Sleep(10 * time.Second) 166 + } 159 167 }