Google begins with page 1 so we add 1 to our page starting with 0
This commit is contained in:
parent
dbb1f371b3
commit
83837bde11
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue