From 6bcc437bc03e9ad4dac78ac025e4c80e2f5f0009 Mon Sep 17 00:00:00 2001 From: tyler Date: Fri, 31 May 2024 11:26:07 -0400 Subject: [PATCH] Updated chat info scraper to match rumble website update --- chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.go b/chat.go index b05e050..9d66b94 100644 --- a/chat.go +++ b/chat.go @@ -88,11 +88,11 @@ func (c *Client) getChatInfo() (*ChatInfo, error) { return nil, fmt.Errorf("error finding end of chat function in webpage") } args := parseRumbleChatArgs(lineS[start : start+end]) - channelID, err := strconv.Atoi(args[5]) + channelID, err := strconv.Atoi(args[6]) if err != nil { return nil, fmt.Errorf("error converting channel ID argument string to int: %v", err) } - chatInfo = &ChatInfo{ChannelID: channelID, ChatID: args[1], UrlPrefix: args[0]} + chatInfo = &ChatInfo{ChannelID: channelID, ChatID: args[2], UrlPrefix: args[0]} } else if strings.Contains(lineS, "media-by--a") && strings.Contains(lineS, "author") { r := strings.NewReader(lineS) node, err := html.Parse(r)