Update index.js
Browse files
index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
const yts = require('yt-search');
|
| 2 |
const morgan = require('morgan');
|
| 3 |
const express = require('express');
|
|
|
|
| 4 |
|
| 5 |
// Regex untuk mengidentifikasi URL YouTube dan Mega
|
| 6 |
const ytIdRegex = /(?:http(?:s|):\/\/|)(?:(?:www\.|)?youtube(?:\-nocookie|)\.com\/(?:shorts\/)?(?:watch\?.*(?:|\&)v=|embed\/|v\/)?|youtu\.be\/)([-_0-9A-Za-z]{11})/;
|
|
|
|
| 1 |
const yts = require('yt-search');
|
| 2 |
const morgan = require('morgan');
|
| 3 |
const express = require('express');
|
| 4 |
+
const ytdl = require('ytdl-core')
|
| 5 |
|
| 6 |
// Regex untuk mengidentifikasi URL YouTube dan Mega
|
| 7 |
const ytIdRegex = /(?:http(?:s|):\/\/|)(?:(?:www\.|)?youtube(?:\-nocookie|)\.com\/(?:shorts\/)?(?:watch\?.*(?:|\&)v=|embed\/|v\/)?|youtu\.be\/)([-_0-9A-Za-z]{11})/;
|