mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 22:30:33 +05:30
Make CONSENT COOKIE constants private
This commit is contained in:
parent
b94b316558
commit
33173eb3e6
@ -81,11 +81,11 @@ public class YoutubeParsingHelper {
|
|||||||
* Therefore, YouTube & Google should not track the user, because they did not give consent.
|
* 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.
|
* 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
|
* 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_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=";
|
private static final String FEED_BASE_USER = "https://www.youtube.com/feeds/videos.xml?user=";
|
||||||
|
@ -14,7 +14,6 @@ import java.io.IOException;
|
|||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.util.*;
|
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.services.youtube.YoutubeParsingHelper.addCookieHeader;
|
||||||
import static org.schabi.newpipe.extractor.utils.Utils.UTF_8;
|
import static org.schabi.newpipe.extractor.utils.Utils.UTF_8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user