Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fix livestream conter not running
Browse files Browse the repository at this point in the history
  • Loading branch information
JustHumanz committed Mar 22, 2021
1 parent 6c61ff4 commit 038af0f
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions service/livestream/youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,43 +98,24 @@ func CheckYtByTime() {
log.Error(err)
}

Youtube.UpdateYt("live") //.SendNude()
Youtube.UpdateYt(config.LiveStatus)
err = SendNude(Youtube)
if err != nil {
log.Error(err)
}
}
}
}
Youtube.UpdateStatus("reminder") //.SendNude()
}
}
}
}
}

/*
func CheckYtScheduleTest(GroupName string) {
yttoken = engine.GetYtToken()
for _, Group := range engine.GroupData {
if GroupName == Group.GroupName {
var wg sync.WaitGroup
for i, Member := range database.GetMembers(Group.ID) {
if Member.YoutubeID != "" {
wg.Add(1)
log.WithFields(log.Fields{
"Vtuber": Member.EnName,
"Group": Group.GroupName,
"Youtube ID": Member.YoutubeID,
"Vtuber Region": Member.Region,
}).Info("Checking Youtube")
go StartCheckYT(Member, Group, &wg)
}
if i%10 == 0 {
wg.Wait()
Youtube.UpdateStatus("reminder")
err = SendNude(Youtube)
if err != nil {
log.Error(err)
}
}
}
wg.Wait()
}
}
}
*/

func GetWaiting(VideoID string) (string, error) {
var (
Expand Down

0 comments on commit 038af0f

Please sign in to comment.