Skip to content

Commit

Permalink
some random experiment to make cookies working
Browse files Browse the repository at this point in the history
  • Loading branch information
munishkhatri720 authored Nov 14, 2024
1 parent e5fff6d commit a420626
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.net.URI;
import java.util.List;
import java.util.stream.Collectors;
import java.net.URLEncoder;

import static com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity.COMMON;
import static com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity.SUSPICIOUS;
Expand All @@ -27,7 +28,7 @@
public interface Client {
String WATCH_URL = "https://www.youtube.com/watch?v=";
String API_BASE_URL = "https://youtubei.googleapis.com/youtubei/v1";
String PLAYER_URL = API_BASE_URL + "/player?prettyPrint=false";
String PLAYER_URL = "http://localhost:4500/proxy?url=" + URLEncoder.encode(API_BASE_URL + "/player?prettyPrint=false" , "UTF-8");
String SEARCH_URL = API_BASE_URL + "/search?prettyPrint=false";
String NEXT_URL = API_BASE_URL + "/next?prettyPrint=false";
String BROWSE_URL = API_BASE_URL + "/browse?prettyPrint=false";
Expand Down

0 comments on commit a420626

Please # to comment.