Skip to content

Commit

Permalink
Change search back to ANDROID
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Mar 30, 2024
1 parent f85e44a commit afec211
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public AudioItem loadSearchResult(String query, Function<AudioTrackInfo, AudioTr

try (HttpInterface httpInterface = httpInterfaceManager.getInterface()) {
HttpPost post = new HttpPost(SEARCH_URL);
YoutubeClientConfig clientConfig = YoutubeClientConfig.WEB.copy()
// TODO: Keep an eye on this.
// Can't drop in WEB as it yields no results.
YoutubeClientConfig clientConfig = YoutubeClientConfig.ANDROID.copy()
.withRootField("query", query)
.withRootField("params", SEARCH_PARAMS)
.setAttribute(httpInterface);
Expand Down

0 comments on commit afec211

Please sign in to comment.