Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -251,7 +251,7 @@ async function getAudioMP3Url(videoUrl) {
|
|
| 251 |
try {
|
| 252 |
const requestData = {"url":videoUrl,"vQuality":"360","filenamePattern":"pretty","isAudioOnly":"true"}
|
| 253 |
const config = { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36', 'Referer': 'https://cobalt.tools/' } };
|
| 254 |
-
const { data: video } = await axios.post('https://
|
| 255 |
const path_audio = path.join(tempDir, generateRandomName(10) + '.mp3');
|
| 256 |
const id_video = await GetId(videoUrl);
|
| 257 |
const infoVids = await getVideoDetailsWithApi(id_video);
|
|
|
|
| 251 |
try {
|
| 252 |
const requestData = {"url":videoUrl,"vQuality":"360","filenamePattern":"pretty","isAudioOnly":"true"}
|
| 253 |
const config = { headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36', 'Referer': 'https://cobalt.tools/' } };
|
| 254 |
+
const { data: video } = await axios.post('https://kityune.imput.net/api/json', requestData, config);
|
| 255 |
const path_audio = path.join(tempDir, generateRandomName(10) + '.mp3');
|
| 256 |
const id_video = await GetId(videoUrl);
|
| 257 |
const infoVids = await getVideoDetailsWithApi(id_video);
|