updated changelog, upped version to 6.0.6

This commit is contained in:
Toastie 2025-03-16 15:57:00 +13:00
parent 6d08ddee7d
commit 83701a9e0b
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
5 changed files with 28 additions and 9 deletions
src/EllieBot
Db/Models
EllieBot.csproj
Modules/Searches/_common/StreamNotifications/Providers
Services/GrpcApi

View file

@ -19,9 +19,9 @@ public class FollowedStream
public ulong GuildId { get; set; }
public ulong ChannelId { get; set; }
public string Username { get; set; }
public string? PrettyName { get; set; } = null;
public string PrettyName { get; set; } = null;
public FType Type { get; set; }
public string? Message { get; set; } = null;
public string Message { get; set; } = null;
protected bool Equals(FollowedStream other)
=> ChannelId == other.ChannelId

View file

@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>6.0.5</Version>
<Version>6.0.6</Version>
<!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View file

@ -142,6 +142,9 @@ public sealed partial class YouTubeProvider : Provider
isLive = true;
}
if (vid is null)
return null;
var avatarUrl = channel?.AuthorThumbnails?.Select(x => x.Url).LastOrDefault();
return new StreamData()
@ -175,7 +178,10 @@ public sealed partial class YouTubeProvider : Provider
var streamData = await Task.WhenAll(group.Select(GetStreamDataAsync));
foreach (var data in streamData)
results.Add(data);
{
if (data is not null)
results.Add(data);
}
}
return results;

View file

@ -35,8 +35,6 @@ public class XpSvc : GrpcXp.GrpcXpBase, IGrpcSvc, IEService
if (guild is null)
throw new RpcException(new Status(StatusCode.NotFound, "Guild not found"));
var isServerExcluded = false;
var reply = new GetXpSettingsReply();
var settings = await _xp.GetFullXpSettingsFor(request.GuildId);