From 83837bde111e490f0640bc260a10947de7323f35 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Mon, 19 Dec 2016 19:28:05 +0100 Subject: [PATCH] Google begins with page 1 so we add 1 to our page starting with 0 --- .../newpipe/extractor/services/youtube/YoutubeSearchEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java index 3eb8ffb14..ab815d9a1 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSearchEngine.java @@ -53,7 +53,7 @@ public class YoutubeSearchEngine extends SearchEngine { String url = "https://www.youtube.com/results" + "?search_query=" + URLEncoder.encode(query, CHARSET_UTF_8) - + "&page=" + Integer.toString(page) + + "&page=" + Integer.toString(page + 1) + "&filters=" + "video"; String site;