Update app.js
Browse files
app.js
CHANGED
|
@@ -187,8 +187,7 @@ app.get('/ytdl/v2', async (req, res) => {
|
|
| 187 |
const lastLine = responseText
|
| 188 |
.split('\n')
|
| 189 |
.map(line => line.trim().substring(5).trim())
|
| 190 |
-
.filter(Boolean)
|
| 191 |
-
.pop();
|
| 192 |
|
| 193 |
if (!lastLine) return res.status(404).json({ error: 'No valid data found.' });
|
| 194 |
|
|
|
|
| 187 |
const lastLine = responseText
|
| 188 |
.split('\n')
|
| 189 |
.map(line => line.trim().substring(5).trim())
|
| 190 |
+
.filter(Boolean);
|
|
|
|
| 191 |
|
| 192 |
if (!lastLine) return res.status(404).json({ error: 'No valid data found.' });
|
| 193 |
|