Skip to content

Commit 33173eb

Browse files
committed
Make CONSENT COOKIE constants private
1 parent b94b316 commit 33173eb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ private YoutubeParsingHelper() {
8181
* Therefore, YouTube & Google should not track the user, because they did not give consent.
8282
* The three digits at the end can be random, but are required.
8383
*/
84-
public static final String CONSENT_COOKIE_VALUE = "PENDING+";
84+
private static final String CONSENT_COOKIE_VALUE = "PENDING+";
8585
/**
8686
* Youtube <code>CONSENT</code> cookie. Should prevent redirect to consent.youtube.com
8787
*/
88-
public static final String CONSENT_COOKIE = "CONSENT=" + CONSENT_COOKIE_VALUE;
88+
private static final String CONSENT_COOKIE = "CONSENT=" + CONSENT_COOKIE_VALUE;
8989

9090
private static final String FEED_BASE_CHANNEL_ID = "https://www.youtube.com/feeds/videos.xml?channel_id=";
9191
private static final String FEED_BASE_USER = "https://www.youtube.com/feeds/videos.xml?user=";

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeSuggestionExtractor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.net.URLEncoder;
1515
import java.util.*;
1616

17-
import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.CONSENT_COOKIE_VALUE;
1817
import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper.addCookieHeader;
1918
import static org.schabi.newpipe.extractor.utils.Utils.UTF_8;
2019

0 commit comments

Comments
 (0)