From c170b8db1f2846aad45b71de306dda0392d635ed Mon Sep 17 00:00:00 2001 From: max Date: Sun, 28 Sep 2025 18:05:52 +0200 Subject: [PATCH] [CHANGE] Added cookie rotation with state. Updated cookie table --- .../Components/Dialogs/AccountDialog.razor | 21 +++++++++---------- Manager.YouTube/YouTubeClient.cs | 6 +++--- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Manager.App/Components/Dialogs/AccountDialog.razor b/Manager.App/Components/Dialogs/AccountDialog.razor index e836e0b..bdb8169 100644 --- a/Manager.App/Components/Dialogs/AccountDialog.razor +++ b/Manager.App/Components/Dialogs/AccountDialog.razor @@ -69,25 +69,24 @@ - + @context.Item.Name - - - - - - + @context.Item.Domain - @context.Item.Expires + @context.Item.Expires + + + + + + @context.Item.Value + diff --git a/Manager.YouTube/YouTubeClient.cs b/Manager.YouTube/YouTubeClient.cs index 7038b30..3d65511 100644 --- a/Manager.YouTube/YouTubeClient.cs +++ b/Manager.YouTube/YouTubeClient.cs @@ -140,15 +140,15 @@ public sealed class YouTubeClient : IDisposable return ResultError.Error(e, "Error while parsing JSON!"); } - if (State == null) { return ResultError.Fail("Unable to parse client state!"); } State.IsPremiumUser = clientStateResult.Value.Item2; - - return Result.Success(); + + var cookieRotationResult = await RotateCookiesPageAsync(); + return !cookieRotationResult.IsSuccess ? cookieRotationResult : Result.Success(); } public async Task> GetChannelByIdAsync(string channelId)