Merge branch 'coffeemakr-fix-yt-dublicated-result-page'

This commit is contained in:
Christian Schabesberger 2016-12-21 20:56:40 +01:00
commit 96291a8522
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,7 @@ android:
- build-tools-23.0.3 - build-tools-23.0.3
# The SDK version used to compile NewPipe # The SDK version used to compile NewPipe
- android-24 - android-25
# Additional components # Additional components
- extra-android-support - extra-android-support
@ -33,3 +33,7 @@ before_script:
- adb shell input keyevent 82 & - adb shell input keyevent 82 &
script: ./gradlew --info build connectedCheck script: ./gradlew --info build connectedCheck
licenses:
- 'android-sdk-license-.+'

View file

@ -53,7 +53,7 @@ public class YoutubeSearchEngine extends SearchEngine {
String url = "https://www.youtube.com/results" String url = "https://www.youtube.com/results"
+ "?search_query=" + URLEncoder.encode(query, CHARSET_UTF_8) + "?search_query=" + URLEncoder.encode(query, CHARSET_UTF_8)
+ "&page=" + Integer.toString(page) + "&page=" + Integer.toString(page + 1)
+ "&filters=" + "video"; + "&filters=" + "video";
String site; String site;