Check live status for all closed channels with notifications at once (#3442)

Use a single api call for fetching live status of fake channels; batch by 100s

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
Mm2PL
2022-01-01 17:06:54 +00:00
committed by GitHub
parent c26fb01df5
commit ea462f94e4
3 changed files with 97 additions and 55 deletions
@@ -41,7 +41,7 @@ private:
void fetchFakeChannels();
void removeFakeChannel(const QString channelName);
void getFakeTwitchChannelLiveStatus(const QString &channelName);
void checkStream(bool live, QString channelName);
// fakeTwitchChannels is a list of streams who are live that we have already sent out a notification for
std::vector<QString> fakeTwitchChannels;