Skip to content

Commit e8bccfa

Browse files
committed
Change UA to privacy.resistFingerprinting.
1 parent a9aa385 commit e8bccfa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
public class YoutubeCommentsExtractor extends CommentsExtractor {
3535
// using the mobile site for comments because it loads faster and uses get requests instead of post
36-
private static final String USER_AGENT = "Mozilla/5.0 (Android 8.1.0; Mobile; rv:62.0) Gecko/62.0 Firefox/62.0";
36+
private static final String USER_AGENT = "Mozilla/5.0 (Android 9; Mobile; rv:78.0) Gecko/20100101 Firefox/78.0";
3737
private static final Pattern YT_CLIENT_NAME_PATTERN = Pattern.compile("INNERTUBE_CONTEXT_CLIENT_NAME\\\":(.*?)[,}]");
3838

3939
private String ytClientVersion;

extractor/src/test/java/org/schabi/newpipe/downloader/DownloaderTestImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
public final class DownloaderTestImpl extends Downloader {
2121
private static final String USER_AGENT
22-
= "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0";
22+
= "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0";
2323
private static DownloaderTestImpl instance;
24-
private OkHttpClient client;
24+
private final OkHttpClient client;
2525

2626
private DownloaderTestImpl(final OkHttpClient.Builder builder) {
2727
this.client = builder.readTimeout(30, TimeUnit.SECONDS).build();

0 commit comments

Comments
 (0)