[CHANGE] Cookie login fixed

This commit is contained in:
max
2025-09-05 23:36:51 +02:00
parent 55322f8792
commit f334c87fbb
7 changed files with 83 additions and 19 deletions

View File

@@ -44,7 +44,7 @@ public class ClientManager : BackgroundService
var ytClient = new YouTubeClient();
//ytClient.CookieContainer = container;
ytClient.UserAgent = accountEntity.UserAgent;
await ytClient.GetStateAsync();
await ytClient.BuildClientAsync();
return ytClient;
}