Compare commits
27 commits
Author | SHA1 | Date | |
---|---|---|---|
|
885c802da6 | ||
|
6d0d7ccecc | ||
|
ff5cef233d | ||
|
2b81cb2fa5 | ||
|
9ffcd5f596 | ||
|
1bd6d90814 | ||
|
c46189ff83 | ||
|
c416918a1a | ||
|
7a3bf1fb45 | ||
|
cd8a4c4d69 | ||
9c7f7eace1 | |||
5066c3ba7a | |||
a833c43713 | |||
a18fbb8614 | |||
|
bb233f7cb8 | ||
|
2f502b2530 | ||
|
c32cc4d3e7 | ||
|
5fc6b0700a | ||
|
b94d5ffc19 | ||
|
267da475a6 | ||
|
82aac1d3b9 | ||
56ef54b119 | |||
|
d21d4d57a9 | ||
214619ec3f | |||
|
18adf9a6a3 | ||
|
66196979cc | ||
|
4d0eaed688 |
6 changed files with 431 additions and 346 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||

|
||||

|
||||

|
||||
|
||||
It's a svelte(kit) frontend + backend that uses [`yt-dlp`](https://github.com/yt-dlp/yt-dlp) to let people download audio/video files from the web.
|
||||
|
||||
|
|
668
package-lock.json
generated
668
package-lock.json
generated
File diff suppressed because it is too large
Load diff
36
package.json
36
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "dl.emersa.it",
|
||||
"private": true,
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.3-c",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
@ -15,34 +15,34 @@
|
|||
"lint": "prettier --check . && eslint ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^1.2.7",
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@eslint/compat": "^1.2.8",
|
||||
"@eslint/js": "^9.24.0",
|
||||
"@sveltejs/adapter-node": "^5.2.12",
|
||||
"@sveltejs/kit": "^2.20.2",
|
||||
"@sveltejs/kit": "^2.20.7",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||
"@tailwindcss/vite": "^4.0.16",
|
||||
"eslint": "^9.23.0",
|
||||
"eslint-config-prettier": "^10.1.1",
|
||||
"eslint-plugin-svelte": "^3.3.3",
|
||||
"@tailwindcss/vite": "^4.1.4",
|
||||
"eslint": "^9.24.0",
|
||||
"eslint-config-prettier": "^10.1.2",
|
||||
"eslint-plugin-svelte": "^3.5.1",
|
||||
"globals": "^16.0.0",
|
||||
"mdsvex": "^0.12.3",
|
||||
"prettier": "^3.5.3",
|
||||
"prettier-plugin-svelte": "^3.3.3",
|
||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||
"svelte": "^5.25.3",
|
||||
"svelte-check": "^4.1.5",
|
||||
"sveltekit-sse": "^0.13.16",
|
||||
"tailwindcss": "^4.0.16",
|
||||
"typescript": "^5.8.2",
|
||||
"typescript-eslint": "^8.28.0",
|
||||
"vite": "^6.2.3"
|
||||
"svelte": "^5.27.2",
|
||||
"svelte-check": "^4.1.6",
|
||||
"sveltekit-sse": "^0.13.18",
|
||||
"tailwindcss": "^4.1.4",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.30.1",
|
||||
"vite": "^6.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/forms": "^0.5.10",
|
||||
"@tailwindcss/postcss": "^4.0.16",
|
||||
"@tailwindcss/postcss": "^4.1.4",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@types/node": "^22.13.13",
|
||||
"@types/node": "^22.14.1",
|
||||
"winston": "^3.17.0",
|
||||
"youtube-dl-exec": "^3.0.19"
|
||||
"youtube-dl-exec": "^3.0.20"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,11 @@
|
|||
transform: rotate(180deg);
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media screen and (max-height: 600px) {
|
||||
/* Your CSS rules here */
|
||||
footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
|
||||
<div
|
||||
id="wrapper"
|
||||
class="relative mx-auto rounded-lg bg-black p-6 text-[#00ff7f] shadow-lg sm:max-w-sm sm:border-4 sm:border-[#00ff7f] md:mt-10 md:max-w-md lg:max-w-lg 2xl:max-w-2xl"
|
||||
class="relative mx-auto rounded-lg bg-black p-6 text-[#00ff7f] shadow-lg sm:mt-10 sm:max-w-sm sm:border-4 sm:border-[#00ff7f] lg:max-w-lg 2xl:max-w-2xl"
|
||||
>
|
||||
<div
|
||||
id="loader"
|
||||
|
@ -123,7 +123,8 @@
|
|||
<p id="title" class="mb-6 text-center text-[#00e5ff]">🐙 Scaricatore 🐙</p>
|
||||
<form class="space-y-6">
|
||||
<!-- Source selection -->
|
||||
<div>
|
||||
<div class="flex justify-between">
|
||||
<div class="w-2/6 lg:w-3/6">
|
||||
<label for="source" class="mb-2 block text-[#00e5ff]"> Choose Source: </label>
|
||||
<select
|
||||
id="source"
|
||||
|
@ -137,6 +138,21 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Format Selection -->
|
||||
<div class="w-2/6">
|
||||
<label for="format" class="mb-2 block text-[#00e5ff]"> Choose Format: </label>
|
||||
<select
|
||||
id="format"
|
||||
name="format"
|
||||
bind:value={format}
|
||||
class="w-full rounded-lg border-4 border-[#00ff7f] bg-[#001a00] px-4 py-3 text-[#00ff7f] focus:border-[#ff3399] focus:outline-none"
|
||||
>
|
||||
{#each formats as format}
|
||||
<option value={format.value}>{format.label}</option>
|
||||
{/each}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Link Input -->
|
||||
<div>
|
||||
<label for="link" class="mb-2 block text-[#00e5ff]"> Enter Video Link: </label>
|
||||
|
@ -151,21 +167,6 @@
|
|||
/>
|
||||
</div>
|
||||
|
||||
<!-- Format Selection -->
|
||||
<div>
|
||||
<label for="format" class="mb-2 block text-[#00e5ff]"> Choose Format: </label>
|
||||
<select
|
||||
id="format"
|
||||
name="format"
|
||||
bind:value={format}
|
||||
class="w-full rounded-lg border-4 border-[#00ff7f] bg-[#001a00] px-4 py-3 text-[#00ff7f] focus:border-[#ff3399] focus:outline-none"
|
||||
>
|
||||
{#each formats as format}
|
||||
<option value={format.value}>{format.label}</option>
|
||||
{/each}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Metadata -->
|
||||
<div>
|
||||
<label for="metadata" class="mb-2 block text-[#00e5ff]"
|
||||
|
@ -230,7 +231,8 @@
|
|||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
* {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
@ -239,6 +241,7 @@
|
|||
#loader {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#loader.downloading {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
|
|
|
@ -38,7 +38,7 @@ const validateRequest = (url: URL) => {
|
|||
};
|
||||
export const GET: RequestHandler = async ({ url }) => {
|
||||
const { format, source, metadata, link } = validateRequest(url);
|
||||
let filename = `you-clicked-no-metadata-so-i-cant-put-a-correct-name.${format}`;
|
||||
let filename = `noname.${format}`;
|
||||
|
||||
if (!!metadata) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue