[CHANGE] Small fixes
This commit is contained in:
@@ -14,6 +14,7 @@ public sealed class YouTubeClient : IDisposable
|
||||
{
|
||||
public string Id { get; private set; } = "";
|
||||
public string? UserAgent { get; set; }
|
||||
public bool IsAnonymous { get; }
|
||||
public CookieContainer CookieContainer { get; } = new() { PerDomainCapacity = 50 };
|
||||
public ClientState? State { get; private set; }
|
||||
public List<string> DatasyncIds { get; } = [];
|
||||
@@ -30,6 +31,7 @@ public sealed class YouTubeClient : IDisposable
|
||||
if (cookies.Count == 0)
|
||||
{
|
||||
Id = $"anon_{Guid.NewGuid()}";
|
||||
IsAnonymous = true;
|
||||
}
|
||||
|
||||
CookieContainer.Add(cookies);
|
||||
|
Reference in New Issue
Block a user