mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-09-01 14:55:26 +00:00
Fix invalid CONSENT cookie value
This commit is contained in:
@@ -734,7 +734,8 @@ public class YoutubeParsingHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String generateConsentCookie() {
|
public static String generateConsentCookie() {
|
||||||
return CONSENT_COOKIE + 100 + numberGenerator.nextInt(900);
|
final int statusCode = 100 + numberGenerator.nextInt(900);
|
||||||
|
return CONSENT_COOKIE + statusCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String extractCookieValue(final String cookieName, final Response response) {
|
public static String extractCookieValue(final String cookieName, final Response response) {
|
||||||
|
Reference in New Issue
Block a user