From 81a4bff1314958612fcd75d7e67c4fe0dfc1cde5 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 4 Apr 2019 11:47:54 +0200 Subject: [PATCH] Implement Randers00's recent-messages API (WIP) --- src/providers/twitch/TwitchChannel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index 9ce761324..e1afffd20 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -577,11 +577,9 @@ Outcome TwitchChannel::parseLiveStatus(const rapidjson::Document &document) void TwitchChannel::loadRecentMessages() { static QString genericURL = - "https://tmi.twitch.tv/api/rooms/%1/recent_messages?client_id=" + - getDefaultClientID(); + "https://recent-messages.robotty.de/v1/recent-messages/%1"; - NetworkRequest request(genericURL.arg(this->roomId())); - request.makeAuthorizedV5(getDefaultClientID()); + NetworkRequest request(genericURL.arg(this->getName())); request.setCaller(QThread::currentThread()); // can't be concurrent right now due to SignalVector // request.setExecuteConcurrently(true);