mirror of
https://github.com/teacat/chaturbate-dvr.git
synced 2025-10-29 16:59:59 +00:00
Merge pull request #97 from jacoop/jacoop-patch-2
Fixup 3bdae1b872c6f8730f3ffeb389cb1a98d1c52c2e
This commit is contained in:
commit
cad4689a5c
@ -102,9 +102,10 @@ func (w *Channel) Run() {
|
||||
}
|
||||
}
|
||||
if strings.Contains(body, "<title>Just a moment...</title>") {
|
||||
w.log(logTypeError, "Cloudflare anti-bot page detected, Try providing cf-cookie and user-agent (Check GitHub for instructions)... Exiting")
|
||||
w.log(LogTypeError, "Cloudflare anti-bot page detected, Try providing cf-cookie and user-agent (Check GitHub for instructions)... Exiting")
|
||||
os.Exit(1)
|
||||
}
|
||||
w.log(logTypeInfo, "channel is offline, check again %d min(s) later", w.Interval)
|
||||
w.log(LogTypeInfo, "channel is offline, check again %d min(s) later", w.Interval)
|
||||
<-time.After(time.Duration(w.Interval) * time.Minute) // minutes cooldown to check online status
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user