Google begins with page 1 so we add 1 to our page starting with 0

This commit is contained in:
Coffeemakr 2016-12-19 19:28:05 +01:00
parent dbb1f371b3
commit 83837bde11
1 changed files with 1 additions and 1 deletions

View File

@ -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;