From 60e07299888569709fd9003991701dcd15dd09af Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 16 Feb 2022 12:25:04 +0100 Subject: [PATCH] Fixed an issue where the trovo stream was showing as picarto --- .../StreamNotification/StreamNotificationCommands.cs | 5 ++++- .../_Common/StreamNotifications/Providers/TrovoProvider.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs index f3765f8fe..c6daf62af 100644 --- a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs +++ b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs @@ -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(); diff --git a/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/Providers/TrovoProvider.cs b/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/Providers/TrovoProvider.cs index b8f2e49ee..1cee9cdf0 100644 --- a/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/Providers/TrovoProvider.cs +++ b/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/Providers/TrovoProvider.cs @@ -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