Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -103,7 +103,7 @@ app.get('/yt/convert', async (req, res) => {
|
|
103 |
}
|
104 |
}))
|
105 |
|
106 |
-
const reqTaskId = await fetchPost('https://srvcdn3.2convert.me/api/json', `hash=${hash}`)
|
107 |
if (!reqTaskId.ok) return res.json({ success: false, message: 'Hash not found' })
|
108 |
|
109 |
const reqTaskJson = await reqTaskId.json()
|
|
|
103 |
}
|
104 |
}))
|
105 |
|
106 |
+
const reqTaskId = await fetchPost('https://srvcdn3.2convert.me/api/json', `hash=${encodeURIComponent(hash)}`)
|
107 |
if (!reqTaskId.ok) return res.json({ success: false, message: 'Hash not found' })
|
108 |
|
109 |
const reqTaskJson = await reqTaskId.json()
|