Show "LIVE" in duration if a stream has been requested
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
09444e8465
commit
6e72646e2a
1 changed files with 6 additions and 2 deletions
|
@ -29,9 +29,13 @@ public static class LavalinkTrackExtensions
|
||||||
builder.Append(" by ").Append(Markdown.Sanitize(track.Author));
|
builder.Append(" by ").Append(Markdown.Sanitize(track.Author));
|
||||||
}
|
}
|
||||||
|
|
||||||
var duration = track.Duration;
|
if (track.IsLiveStream)
|
||||||
builder.Append($" ({duration.ReadableDuration()})");
|
{
|
||||||
|
builder.Append($" ({Markdown.Bold("LIVE")})");
|
||||||
|
return builder.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
builder.Append($" ({track.Duration.ReadableDuration()})");
|
||||||
return builder.ToString();
|
return builder.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue