Add a new Channel API for experimental plugins feature (#5141)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -82,6 +82,7 @@ public:
|
||||
QString game;
|
||||
QString gameId;
|
||||
QString uptime;
|
||||
int uptimeSeconds = 0;
|
||||
QString streamType;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user