Add a new Channel API for experimental plugins feature (#5141)

This commit is contained in:
Mm2PL
2024-02-03 19:12:00 +01:00
committed by GitHub
parent 7fdb3841db
commit 8e9aa87a08
14 changed files with 1069 additions and 153 deletions
+1
View File
@@ -467,6 +467,7 @@ void TwitchChannel::updateStreamStatus(
auto diff = since.secsTo(QDateTime::currentDateTime());
status->uptime = QString::number(diff / 3600) + "h " +
QString::number(diff % 3600 / 60) + "m";
status->uptimeSeconds = diff;
status->rerun = false;
status->streamType = stream.type;
+1
View File
@@ -82,6 +82,7 @@ public:
QString game;
QString gameId;
QString uptime;
int uptimeSeconds = 0;
QString streamType;
};