Fix invalid CONSENT cookie value

This commit is contained in:
TobiGr 2021-07-03 13:14:22 +02:00
parent a023f08774
commit 9ca6dc26ed
1 changed files with 2 additions and 1 deletions

View File

@ -734,7 +734,8 @@ public class YoutubeParsingHelper {
}
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) {