Skip to content

Commit 7c31483

Browse files
committed
Update YoutubeClient.java
update youtube response
1 parent a175866 commit 7c31483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/YouTubeSearchApi/YoutubeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public YoutubeClient() {
2626
}
2727

2828
public List<YoutubeVideo> search(String keywords, int maxResults) throws IOException, NoResultFoundException {
29-
String startFeature = "window[\"ytInitialData\"]";
29+
String startFeature = "ytInitialData";
3030
String encodedKeywords = URLEncoder.encode(keywords, StandardCharsets.UTF_8.toString());
3131
String searchUrl = this.YOUTUBE_BASE_URL + "results?search_query=" + encodedKeywords;
3232

0 commit comments

Comments
 (0)