diff --git a/chaturbate/channel.go b/chaturbate/channel.go index 7ce4ea3..892e4f0 100644 --- a/chaturbate/channel.go +++ b/chaturbate/channel.go @@ -27,6 +27,8 @@ type Channel struct { filenamePattern string LastStreamedAt string Interval int + CFCookie string + UserAgent string Framerate int Resolution int ResolutionFallback string @@ -60,6 +62,7 @@ type Channel struct { // Run func (w *Channel) Run() { + if w.Username == "" { w.log(logTypeError, "username is empty, use `-u USERNAME` to specify") return @@ -98,7 +101,10 @@ func (w *Channel) Run() { w.log(logTypeError, "release file: %w", err) } } - + if strings.Contains(body, "