mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-15 14:50:33 +05:30
Merge pull request #551 from FireMasterK/ff-privacy
Change UA to privacy.resistFingerprinting.
This commit is contained in:
commit
12835bfae1
@ -34,7 +34,7 @@ import static org.schabi.newpipe.extractor.utils.Utils.isNullOrEmpty;
|
|||||||
|
|
||||||
public class YoutubeCommentsExtractor extends CommentsExtractor {
|
public class YoutubeCommentsExtractor extends CommentsExtractor {
|
||||||
// using the mobile site for comments because it loads faster and uses get requests instead of post
|
// using the mobile site for comments because it loads faster and uses get requests instead of post
|
||||||
private static final String USER_AGENT = "Mozilla/5.0 (Android 8.1.0; Mobile; rv:62.0) Gecko/62.0 Firefox/62.0";
|
private static final String USER_AGENT = "Mozilla/5.0 (Android 9; Mobile; rv:78.0) Gecko/20100101 Firefox/78.0";
|
||||||
private static final Pattern YT_CLIENT_NAME_PATTERN = Pattern.compile("INNERTUBE_CONTEXT_CLIENT_NAME\\\":(.*?)[,}]");
|
private static final Pattern YT_CLIENT_NAME_PATTERN = Pattern.compile("INNERTUBE_CONTEXT_CLIENT_NAME\\\":(.*?)[,}]");
|
||||||
|
|
||||||
private String ytClientVersion;
|
private String ytClientVersion;
|
||||||
|
@ -19,9 +19,9 @@ import okhttp3.ResponseBody;
|
|||||||
|
|
||||||
public final class DownloaderTestImpl extends Downloader {
|
public final class DownloaderTestImpl extends Downloader {
|
||||||
private static final String USER_AGENT
|
private static final String USER_AGENT
|
||||||
= "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0";
|
= "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0";
|
||||||
private static DownloaderTestImpl instance;
|
private static DownloaderTestImpl instance;
|
||||||
private OkHttpClient client;
|
private final OkHttpClient client;
|
||||||
|
|
||||||
private DownloaderTestImpl(final OkHttpClient.Builder builder) {
|
private DownloaderTestImpl(final OkHttpClient.Builder builder) {
|
||||||
this.client = builder.readTimeout(30, TimeUnit.SECONDS).build();
|
this.client = builder.readTimeout(30, TimeUnit.SECONDS).build();
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user