Fix invalid CONSENT cookie value
This commit is contained in:
parent
a023f08774
commit
9ca6dc26ed
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue