Fixed an issue where the trovo stream was showing as picarto

This commit is contained in:
Kwoth
2022-02-16 12:25:04 +01:00
parent 8c1c75c246
commit 60e0729988
2 changed files with 5 additions and 2 deletions

View File

@@ -87,7 +87,10 @@ public partial class Searches
await ctx.SendPaginatedConfirmAsync(page,
cur =>
{
var elements = streams.Skip(cur * 12).Take(12).ToList();
var elements = streams
.Skip(cur * 12)
.Take(12)
.ToList();
if (elements.Count == 0)
return _eb.Create().WithDescription(GetText(strs.streams_none)).WithErrorColor();

View File

@@ -79,7 +79,7 @@ public class TrovoProvider : Provider
Title = data.LiveTitle,
Viewers = data.CurrentViewers,
AvatarUrl = data.ProfilePic,
StreamType = FollowedStream.FType.Picarto,
StreamType = Platform,
StreamUrl = data.ChannelUrl,
UniqueName = data.Username,
Preview = data.Thumbnail