Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions YoutubeExplode/YoutubeHttpHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ public YoutubeHttpHandler(
)
: base(http, disposeClient)
{
// Pre-fill cookies
foreach (var cookie in initialCookies)
_cookieContainer.Add(cookie);

// Consent to the use of cookies on YouTube.
// This is required to access some personalized content, such as mix playlists.
// https://github.com/Tyrrrz/YoutubeExplode/issues/730
Expand All @@ -38,6 +34,10 @@ public YoutubeHttpHandler(
Domain = "youtube.com",
}
);

// Add user-supplied cookies
foreach (var cookie in initialCookies)
_cookieContainer.Add(cookie);
}

private string? TryGenerateAuthHeaderValue(Uri uri)
Expand Down