diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/niconico/NiconicoService.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/niconico/NiconicoService.java index 52d120ae..b35bcf77 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/niconico/NiconicoService.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/niconico/NiconicoService.java @@ -135,7 +135,7 @@ static public Map getWebSocketHeaders(){ static public Map> getStreamSourceHeaders(String accessKey){ Map> headers = new HashMap<>(); - headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0")); + headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")); headers.put("Accept", Collections.singletonList("*/*")); headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5")); headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br")); @@ -158,7 +158,7 @@ static public Map> getStreamSourceHeaders(String accessKey) static public Map> getPreFetchStreamHeaders(){ Map> headers = new HashMap<>(); - headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0")); + headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")); headers.put("Accept", Collections.singletonList("*/*")); headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5")); headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br")); @@ -178,7 +178,7 @@ static public Map> getPreFetchStreamHeaders(){ static public Map> getStreamHeaders(String cookie){ HashMap> headers = new HashMap<>(); - headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0")); + headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")); headers.put("Accept", Collections.singletonList("*/*")); headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5")); headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br"));