We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a175866 commit 7c31483Copy full SHA for 7c31483
1 file changed
src/main/java/YouTubeSearchApi/YoutubeClient.java
@@ -26,7 +26,7 @@ public YoutubeClient() {
26
}
27
28
public List<YoutubeVideo> search(String keywords, int maxResults) throws IOException, NoResultFoundException {
29
- String startFeature = "window[\"ytInitialData\"]";
+ String startFeature = "ytInitialData";
30
String encodedKeywords = URLEncoder.encode(keywords, StandardCharsets.UTF_8.toString());
31
String searchUrl = this.YOUTUBE_BASE_URL + "results?search_query=" + encodedKeywords;
32
0 commit comments