Skip to content

Commit

Permalink
add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
eyezahhhh committed Jul 12, 2024
1 parent e4d7f1d commit 106bee5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/service/YoutubeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export default class YoutubeService extends StreamingService {
racyCheckOk: true
};

const response = await Axios.post(`https://www.youtube.com/youtubei/v1/player?key${apiKey}&prettyPrint=false`, body, { headers });
const url = `https://www.youtube.com/youtubei/v1/player?key${apiKey}&prettyPrint=false`;
console.log(url);
const response = await Axios.post(url, body, { headers });
console.log(response.status, response.data);

const formats = response.data.streamingData.adaptiveFormats;
return formats;
Expand Down

0 comments on commit 106bee5

Please sign in to comment.