Skip to content

Fix custom cookies getting overwritten#910

Merged
Tyrrrz merged 3 commits intoTyrrrz:masterfrom
Guacam-Ole:patch-1
Oct 3, 2025
Merged

Fix custom cookies getting overwritten#910
Tyrrrz merged 3 commits intoTyrrrz:masterfrom
Guacam-Ole:patch-1

Conversation

@Guacam-Ole
Copy link
Copy Markdown
Contributor

To allow providing a custom Cookie like mentioned in the Authentication-part of the Readme:

using YoutubeExplode;

// Perform authentication and extract cookies
var cookies = ...;

// Cookie collection must be of type IReadOnlyList<System.Net.Cookie>
var youtube = new YoutubeClient(cookies);

That custom cookie must always have priority over the default/fallback cookie for this to work. I changed the order so to meet this requirement

Closes #909

@Tyrrrz Tyrrrz added the bug label Oct 3, 2025
@Tyrrrz Tyrrrz changed the title Fix custom Cookies getting overwritten Fix custom cookies getting overwritten Oct 3, 2025
@Tyrrrz Tyrrrz merged commit f78dbcf into Tyrrrz:master Oct 3, 2025
@Guacam-Ole Guacam-Ole deleted the patch-1 branch October 4, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom cookies get overriden by default value

2 participants