1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-09-01 10:27:57 +00:00

Merge pull request #5997 from TeamNewPipe/reChaptcha

Do not set reCaptcha cookie when there is no cookie stored
This commit is contained in:
Tobi
2021-05-04 18:53:12 +02:00
committed by GitHub

View File

@@ -130,7 +130,7 @@ public class App extends MultiDexApplication {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(
getApplicationContext());
final String key = getApplicationContext().getString(R.string.recaptcha_cookies_key);
downloader.setCookie(ReCaptchaActivity.RECAPTCHA_COOKIES_KEY, prefs.getString(key, ""));
downloader.setCookie(ReCaptchaActivity.RECAPTCHA_COOKIES_KEY, prefs.getString(key, null));
downloader.updateYoutubeRestrictedModeCookies(getApplicationContext());
}