Make CONSENT COOKIE constants private

This commit is contained in:
TobiGr 2021-04-09 11:51:54 +02:00
parent b94b316558
commit 33173eb3e6
2 changed files with 2 additions and 3 deletions

View File

@ -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 <code>CONSENT</code> 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=";

View File

@ -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;