diff --git a/bin/arm64/darwin/chatubrate-dvr b/bin/arm64/darwin/chatubrate-dvr index 29484f4..c266486 100644 Binary files a/bin/arm64/darwin/chatubrate-dvr and b/bin/arm64/darwin/chatubrate-dvr differ diff --git a/bin/arm64/linux/chatubrate-dvr b/bin/arm64/linux/chatubrate-dvr index 38e6685..a634792 100644 Binary files a/bin/arm64/linux/chatubrate-dvr and b/bin/arm64/linux/chatubrate-dvr differ diff --git a/bin/arm64/windows/chatubrate-dvr b/bin/arm64/windows/chatubrate-dvr index e8e102a..bfee31e 100644 Binary files a/bin/arm64/windows/chatubrate-dvr and b/bin/arm64/windows/chatubrate-dvr differ diff --git a/bin/darwin/chaturbate-dvr b/bin/darwin/chaturbate-dvr index 99abf5b..65df328 100644 Binary files a/bin/darwin/chaturbate-dvr and b/bin/darwin/chaturbate-dvr differ diff --git a/bin/linux/chaturbate-dvr b/bin/linux/chaturbate-dvr index f53ff38..988baf1 100644 Binary files a/bin/linux/chaturbate-dvr and b/bin/linux/chaturbate-dvr differ diff --git a/bin/windows/chaturbate-dvr.exe b/bin/windows/chaturbate-dvr.exe index 5829181..6e720d2 100644 Binary files a/bin/windows/chaturbate-dvr.exe and b/bin/windows/chaturbate-dvr.exe differ diff --git a/main.go b/main.go index e4b00f7..3b5a7d7 100644 --- a/main.go +++ b/main.go @@ -120,7 +120,7 @@ func parseHLSSource(url string, baseURL string) string { if len(errs) > 0 { log.Println(color.Colorize(color.Red, errs[0].Error())) } - if resp.StatusCode == 403 { + if resp == nil || resp.StatusCode == 403 { return "" } p, _, _ := m3u8.DecodeFrom(strings.NewReader(body), true) @@ -138,7 +138,7 @@ func parseM3U8Source(url string) (chunks []*m3u8.MediaSegment, wait float64, err log.Println(color.Colorize(color.Red, errs[0].Error())) } // Retry after 3 seconds if the connection lost or status code returns 403 (the channel might went offline). - if len(errs) > 0 || resp.StatusCode == http.StatusForbidden { + if len(errs) > 0 || resp == nil || resp.StatusCode == http.StatusForbidden { return nil, 3, errInternal }