now-playing: 再生情報の取得に失敗したときのエラーハンドリングを追加
/ build-tool (pull_request) Has been skipped Details
/ build-angular (pull_request) Has been skipped Details
/ build-watchdog-be (pull_request) Has been skipped Details
/ build-docker-image (pull_request) Has been skipped Details

This commit is contained in:
usbharu 2024-03-19 19:32:55 +09:00
parent 8f428a9440
commit e3ca4958a2
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ func main() {
for { for {
playing, err := client.PlayerCurrentlyPlaying(ctx) playing, err := client.PlayerCurrentlyPlaying(ctx)
if err != nil { if err != nil {
log.Fatal(err) log.Println(err)
time.Sleep(10 * time.Minute)
continue
} }
if !playing.Playing { if !playing.Playing {