API that allows you to embed or download every video and audio from supported sites by yt-dlp on platforms like Discord, Telegram, WhatsApp and more.
Note
This project wasnt supposed to see daylight and some things could still be related to my stuff
# Clone this repository
git clone https://git.nadeko.net/BlackusPL/EmbedDLP.git
cd EmbedDLPDeno (Recommended)
deno install
deno run start # or 'deno src/app.js'Nodejs
npm install
npm start # or 'node src/app'/ - Opens home page
/universal - Main endpoint, arguments:
?q=<url>- video/audio link that should be embeded?video=<true/1/false/0>- if embeded file should be a video or audio (optional, default=false)
/music - Embeds spotify songs as a audio file, arguments:
?q=<url>- spotify link that should be embeded as a audio file?ss=<int>- choose in order wich song should be used (optional, default=1)
Embedded files by default have 5 minutes before get terminated in next execution of app. They are stored in output/files_expiration.json.
Example structure:
{
"example.mp3": {
"created_at": "1771544044840",
"expiration": "1771544345231",
"source_urls": [
"http://example.com/example.mp3"
]
}
}Temporary videos and audios are stored in output directory and are not accesible trough site.
To change expiration time, in .env use EXPIRATION_TIME in seconds.
You can create translation to your language by creating json file in locales directory.
Using Deno you can compile this app to binary file that can be run anywhere. Simply type deno run build and you good to go.