From 33173eb3e61653c9b610c7e6ab97a258253b88f3 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Fri, 9 Apr 2021 11:51:54 +0200 Subject: [PATCH] Make CONSENT COOKIE constants private --- .../extractor/services/youtube/YoutubeParsingHelper.java | 4 ++-- .../youtube/extractors/YoutubeSuggestionExtractor.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java index 86ef07e73..3ef7756e6 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java @@ -81,11 +81,11 @@ public class YoutubeParsingHelper { * Therefore, YouTube & Google should not track the user, because they did not give consent. * The three digits at the end can be random, but are required. */ - public static final String CONSENT_COOKIE_VALUE = "PENDING+"; + private static final String CONSENT_COOKIE_VALUE = "PENDING+"; /** * Youtube CONSENT cookie. Should prevent redirect to consent.youtube.com */ - public static final String CONSENT_COOKIE = "CONSENT=" + CONSENT_COOKIE_VALUE; + private static final String CONSENT_COOKIE = "CONSENT=" + CONSENT_COOKIE_VALUE; private static final String FEED_BASE_CHANNEL_ID = "https://www.youtube.com/feeds/videos.xml?channel_id="; private static final String FEED_BASE_USER = "https://www.youtube.com/feeds/videos.xml?user="; diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSuggestionExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSuggestionExtractor.java index d78cd373c..277e8531b 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSuggestionExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSuggestionExtractor.java @@ -14,7 +14,6 @@ import java.io.IOException; import java.net.URLEncoder; import java.util.*; -import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.CONSENT_COOKIE_VALUE; import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.addCookieHeader; import static org.schabi.newpipe.extractor.utils.Utils.UTF_8;