Differentiate live streams and vodcasts

Fixes #320
This commit is contained in:
Rasmus Karlsson
2018-04-08 15:14:14 +02:00
committed by fourtf
parent c2ddb74307
commit f6a0ac1bda
3 changed files with 21 additions and 4 deletions
+7 -4
View File
@@ -172,14 +172,17 @@ void SplitHeader::updateChannelText()
this->isLive = true;
this->tooltip = "<style>.center { text-align: center; }</style>"
"<p class = \"center\">" +
streamStatus.title + "<br><br>" + streamStatus.game +
"<br>"
"Live for " +
streamStatus.title + "<br><br>" + streamStatus.game + "<br>" +
(streamStatus.rerun ? "Vod-casting" : "Live") + " for " +
streamStatus.uptime + " with " +
QString::number(streamStatus.viewerCount) +
" viewers"
"</p>";
this->titleLabel->setText(channelName + " (live)");
if (streamStatus.rerun) {
this->titleLabel->setText(channelName + " (rerun)");
} else {
this->titleLabel->setText(channelName + " (live)");
}
return;
}