From 83837bde111e490f0640bc260a10947de7323f35 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Mon, 19 Dec 2016 19:28:05 +0100 Subject: [PATCH 1/3] 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; From cb1fe5f017513e72aa2a890a47b320822d69664f Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Mon, 19 Dec 2016 19:36:24 +0100 Subject: [PATCH 2/3] Try to fix travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d66b06423..d9ce7a7ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ android: - build-tools-23.0.3 # The SDK version used to compile NewPipe - - android-24 + - android-25 # Additional components - extra-android-support From f4aabdd9b85286e3cfe095ab00640c8a367fe7c3 Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Mon, 19 Dec 2016 19:40:28 +0100 Subject: [PATCH 3/3] Accept SDK Licenses --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index d9ce7a7ee..52483ec2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,3 +33,7 @@ before_script: - adb shell input keyevent 82 & script: ./gradlew --info build connectedCheck + +licenses: + - 'android-sdk-license-.+' +