undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +355 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: yt-dl
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,355 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>YTDownloader Pro - Download YouTube Videos</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
|
| 12 |
+
}
|
| 13 |
+
.video-card {
|
| 14 |
+
transition: all 0.3s ease;
|
| 15 |
+
}
|
| 16 |
+
.video-card:hover {
|
| 17 |
+
transform: translateY(-5px);
|
| 18 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 19 |
+
}
|
| 20 |
+
.download-btn {
|
| 21 |
+
transition: all 0.3s ease;
|
| 22 |
+
}
|
| 23 |
+
.download-btn:hover {
|
| 24 |
+
transform: scale(1.05);
|
| 25 |
+
}
|
| 26 |
+
.api-modal {
|
| 27 |
+
transition: all 0.3s ease;
|
| 28 |
+
opacity: 0;
|
| 29 |
+
pointer-events: none;
|
| 30 |
+
}
|
| 31 |
+
.api-modal.active {
|
| 32 |
+
opacity: 1;
|
| 33 |
+
pointer-events: all;
|
| 34 |
+
}
|
| 35 |
+
.wave {
|
| 36 |
+
animation: wave 8s linear infinite;
|
| 37 |
+
}
|
| 38 |
+
@keyframes wave {
|
| 39 |
+
0% { transform: translateX(0); }
|
| 40 |
+
100% { transform: translateX(-50%); }
|
| 41 |
+
}
|
| 42 |
+
</style>
|
| 43 |
+
</head>
|
| 44 |
+
<body class="bg-gray-50 font-sans">
|
| 45 |
+
<!-- Header -->
|
| 46 |
+
<header class="gradient-bg text-white shadow-lg">
|
| 47 |
+
<div class="container mx-auto px-4 py-6">
|
| 48 |
+
<div class="flex justify-between items-center">
|
| 49 |
+
<div class="flex items-center space-x-2">
|
| 50 |
+
<i class="fab fa-youtube text-3xl"></i>
|
| 51 |
+
<h1 class="text-2xl font-bold">YTDownloader Pro</h1>
|
| 52 |
+
</div>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</header>
|
| 56 |
+
|
| 57 |
+
<!-- Hero Section -->
|
| 58 |
+
<section class="gradient-bg text-white py-16 relative overflow-hidden">
|
| 59 |
+
<div class="absolute top-0 left-0 w-full h-full opacity-10">
|
| 60 |
+
<div class="wave whitespace-nowrap text-6xl">
|
| 61 |
+
<span class="inline-block mx-4">🎬</span>
|
| 62 |
+
<span class="inline-block mx-4">📹</span>
|
| 63 |
+
<span class="inline-block mx-4">🎥</span>
|
| 64 |
+
<span class="inline-block mx-4">🎞️</span>
|
| 65 |
+
<span class="inline-block mx-4">🎬</span>
|
| 66 |
+
<span class="inline-block mx-4">📹</span>
|
| 67 |
+
<span class="inline-block mx-4">🎥</span>
|
| 68 |
+
<span class="inline-block mx-4">🎞️</span>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
<div class="container mx-auto px-4 relative z-10">
|
| 72 |
+
<div class="max-w-3xl mx-auto text-center">
|
| 73 |
+
<h2 class="text-4xl md:text-5xl font-bold mb-6">Download YouTube Videos in Seconds</h2>
|
| 74 |
+
<p class="text-xl mb-8">Fast, secure, and unlimited downloads in HD quality. No registration required!</p>
|
| 75 |
+
|
| 76 |
+
<div class="bg-white rounded-lg p-1 shadow-xl flex">
|
| 77 |
+
<input type="text" placeholder="Paste YouTube video URL here..."
|
| 78 |
+
class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
|
| 79 |
+
<button class="bg-red-600 text-white px-6 py-3 rounded-r-lg font-semibold hover:bg-red-700 transition">
|
| 80 |
+
<i class="fas fa-search mr-2"></i>Analyze
|
| 81 |
+
</button>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<div class="mt-6 flex justify-center space-x-4">
|
| 85 |
+
<span class="flex items-center">
|
| 86 |
+
<i class="fas fa-check-circle text-green-300 mr-2"></i>
|
| 87 |
+
<span>No Watermark</span>
|
| 88 |
+
</span>
|
| 89 |
+
<span class="flex items-center">
|
| 90 |
+
<i class="fas fa-check-circle text-green-300 mr-2"></i>
|
| 91 |
+
<span>HD Quality</span>
|
| 92 |
+
</span>
|
| 93 |
+
<span class="flex items-center">
|
| 94 |
+
<i class="fas fa-check-circle text-green-300 mr-2"></i>
|
| 95 |
+
<span>Fast Download</span>
|
| 96 |
+
</span>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</section>
|
| 101 |
+
|
| 102 |
+
<!-- Video Info Section (shown after URL submission) -->
|
| 103 |
+
<section id="video-info" class="container mx-auto px-4 py-12 hidden">
|
| 104 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
| 105 |
+
<div class="md:flex">
|
| 106 |
+
<div class="md:w-1/2">
|
| 107 |
+
<div class="relative pb-[56.25%] bg-gray-200">
|
| 108 |
+
<img id="video-thumbnail" src="" alt="Video thumbnail" class="absolute h-full w-full object-cover">
|
| 109 |
+
<div class="absolute inset-0 flex items-center justify-center">
|
| 110 |
+
<button class="bg-red-600 bg-opacity-80 text-white rounded-full w-16 h-16 flex items-center justify-center hover:bg-opacity-100 transition">
|
| 111 |
+
<i class="fas fa-play text-2xl"></i>
|
| 112 |
+
</button>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="md:w-1/2 p-6">
|
| 117 |
+
<h3 id="video-title" class="text-2xl font-bold mb-4 text-gray-800"></h3>
|
| 118 |
+
<div class="flex items-center mb-4">
|
| 119 |
+
<div class="w-10 h-10 rounded-full bg-gray-300 overflow-hidden mr-3">
|
| 120 |
+
<img id="channel-icon" src="" alt="Channel icon" class="w-full h-full object-cover">
|
| 121 |
+
</div>
|
| 122 |
+
<div>
|
| 123 |
+
<p id="channel-name" class="font-medium text-gray-700"></p>
|
| 124 |
+
<p id="video-views" class="text-sm text-gray-500"></p>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
<p id="video-duration" class="text-gray-600 mb-6"></p>
|
| 128 |
+
|
| 129 |
+
<div class="mb-6">
|
| 130 |
+
<h4 class="font-semibold text-gray-700 mb-3">Available Formats</h4>
|
| 131 |
+
<div class="grid grid-cols-2 md:grid-cols-3 gap-3">
|
| 132 |
+
<!-- Format options will be added dynamically -->
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div class="flex space-x-3">
|
| 137 |
+
<button class="download-btn bg-red-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-700 transition flex items-center">
|
| 138 |
+
<i class="fas fa-download mr-2"></i> Download
|
| 139 |
+
</button>
|
| 140 |
+
<button class="download-btn bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 transition flex items-center">
|
| 141 |
+
<i class="fas fa-music mr-2"></i> MP3
|
| 142 |
+
</button>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</section>
|
| 148 |
+
|
| 149 |
+
<!-- Features Section -->
|
| 150 |
+
<section class="bg-white py-16">
|
| 151 |
+
<div class="container mx-auto px-4">
|
| 152 |
+
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Why Choose YTDownloader Pro?</h2>
|
| 153 |
+
|
| 154 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 155 |
+
<div class="bg-gray-50 p-6 rounded-xl shadow-sm text-center">
|
| 156 |
+
<div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 157 |
+
<i class="fas fa-bolt text-red-600 text-2xl"></i>
|
| 158 |
+
</div>
|
| 159 |
+
<h3 class="text-xl font-semibold mb-3 text-gray-800">Lightning Fast</h3>
|
| 160 |
+
<p class="text-gray-600">Our optimized servers ensure your downloads complete in seconds, even for HD videos.</p>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<div class="bg-gray-50 p-6 rounded-xl shadow-sm text-center">
|
| 164 |
+
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 165 |
+
<i class="fas fa-lock text-blue-600 text-2xl"></i>
|
| 166 |
+
</div>
|
| 167 |
+
<h3 class="text-xl font-semibold mb-3 text-gray-800">Secure & Private</h3>
|
| 168 |
+
<p class="text-gray-600">We don't store your data or downloaded videos. Your privacy is our priority.</p>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<div class="bg-gray-50 p-6 rounded-xl shadow-sm text-center">
|
| 172 |
+
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 173 |
+
<i class="fas fa-expand text-green-600 text-2xl"></i>
|
| 174 |
+
</div>
|
| 175 |
+
<h3 class="text-xl font-semibold mb-3 text-gray-800">Multiple Formats</h3>
|
| 176 |
+
<p class="text-gray-600">Download in MP4, WebM, 3GP, or extract audio as MP3, M4A with various quality options.</p>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</section>
|
| 181 |
+
|
| 182 |
+
<!-- How It Works Section -->
|
| 183 |
+
<section class="bg-gray-50 py-16">
|
| 184 |
+
<div class="container mx-auto px-4">
|
| 185 |
+
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">How It Works</h2>
|
| 186 |
+
|
| 187 |
+
<div class="grid md:grid-cols-3 gap-8 max-w-5xl mx-auto">
|
| 188 |
+
<div class="flex flex-col items-center text-center">
|
| 189 |
+
<div class="bg-white w-14 h-14 rounded-full flex items-center justify-center mb-4 shadow-md text-red-600 font-bold text-xl border-2 border-red-600">1</div>
|
| 190 |
+
<h3 class="text-xl font-semibold mb-2 text-gray-800">Paste URL</h3>
|
| 191 |
+
<p class="text-gray-600">Copy and paste any YouTube video link into the search box above.</p>
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div class="flex flex-col items-center text-center">
|
| 195 |
+
<div class="bg-white w-14 h-14 rounded-full flex items-center justify-center mb-4 shadow-md text-red-600 font-bold text-xl border-2 border-red-600">2</div>
|
| 196 |
+
<h3 class="text-xl font-semibold mb-2 text-gray-800">Select Format</h3>
|
| 197 |
+
<p class="text-gray-600">Choose your preferred video quality or audio format.</p>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<div class="flex flex-col items-center text-center">
|
| 201 |
+
<div class="bg-white w-14 h-14 rounded-full flex items-center justify-center mb-4 shadow-md text-red-600 font-bold text-xl border-2 border-red-600">3</div>
|
| 202 |
+
<h3 class="text-xl font-semibold mb-2 text-gray-800">Download</h3>
|
| 203 |
+
<p class="text-gray-600">Click download and save the file to your device instantly.</p>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</section>
|
| 208 |
+
|
| 209 |
+
<!-- API Configuration (hidden by default) -->
|
| 210 |
+
<section id="api-config-section" class="hidden">
|
| 211 |
+
<div class="container mx-auto px-4 py-8">
|
| 212 |
+
<h2 class="text-2xl font-bold mb-6">API Configuration</h2>
|
| 213 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
| 214 |
+
<div class="mb-4">
|
| 215 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">API Endpoint URL</label>
|
| 216 |
+
<input type="text" id="api-url" value="https://your-api-endpoint.com"
|
| 217 |
+
class="w-full px-4 py-2 border border-gray-300 rounded-lg">
|
| 218 |
+
</div>
|
| 219 |
+
<button id="save-api" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700">
|
| 220 |
+
Save API Configuration
|
| 221 |
+
</button>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
</section>
|
| 225 |
+
|
| 226 |
+
<!-- Footer -->
|
| 227 |
+
<footer class="bg-gray-800 text-white py-12">
|
| 228 |
+
<div class="container mx-auto px-4">
|
| 229 |
+
<div class="grid md:grid-cols-4 gap-8">
|
| 230 |
+
<div>
|
| 231 |
+
<h3 class="text-xl font-bold mb-4 flex items-center">
|
| 232 |
+
<i class="fab fa-youtube text-red-600 mr-2"></i> YTDownloader Pro
|
| 233 |
+
</h3>
|
| 234 |
+
<p class="text-gray-400">The fastest and most reliable YouTube video downloader. Download your favorite videos in seconds!</p>
|
| 235 |
+
</div>
|
| 236 |
+
|
| 237 |
+
<div>
|
| 238 |
+
<h4 class="font-semibold text-lg mb-4">Quick Links</h4>
|
| 239 |
+
<ul class="space-y-2">
|
| 240 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li>
|
| 241 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">How It Works</a></li>
|
| 242 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Features</a></li>
|
| 243 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">FAQ</a></li>
|
| 244 |
+
</ul>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<div>
|
| 248 |
+
<h4 class="font-semibold text-lg mb-4">Formats</h4>
|
| 249 |
+
<ul class="space-y-2">
|
| 250 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">MP4 HD</a></li>
|
| 251 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">MP4 720p</a></li>
|
| 252 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">MP4 480p</a></li>
|
| 253 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">MP3 Audio</a></li>
|
| 254 |
+
</ul>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<div>
|
| 258 |
+
<h4 class="font-semibold text-lg mb-4">Connect</h4>
|
| 259 |
+
<div class="flex space-x-4">
|
| 260 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-facebook"></i></a>
|
| 261 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-twitter"></i></a>
|
| 262 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-instagram"></i></a>
|
| 263 |
+
<a href="#" class="text-gray-400 hover:text-white transition text-xl"><i class="fab fa-github"></i></a>
|
| 264 |
+
</div>
|
| 265 |
+
<p class="text-gray-400 mt-4">support@ytdownloaderpro.com</p>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
|
| 269 |
+
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
|
| 270 |
+
<p>© 2023 YTDownloader Pro. All rights reserved.</p>
|
| 271 |
+
<p class="mt-2 text-sm">This service is not affiliated with YouTube. We respect copyright laws.</p>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
</footer>
|
| 275 |
+
|
| 276 |
+
<script>
|
| 277 |
+
// API Configuration Logic
|
| 278 |
+
const saveApiBtn = document.getElementById('save-api');
|
| 279 |
+
|
| 280 |
+
// Save API configuration
|
| 281 |
+
saveApiBtn.addEventListener('click', () => {
|
| 282 |
+
const apiUrl = document.getElementById('api-url').value;
|
| 283 |
+
|
| 284 |
+
if (!apiUrl) {
|
| 285 |
+
alert('Please enter a valid API endpoint URL');
|
| 286 |
+
return;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
localStorage.setItem('ytdl_api_url', apiUrl);
|
| 290 |
+
alert('API configuration saved successfully!');
|
| 291 |
+
|
| 292 |
+
// Hide the config section after saving
|
| 293 |
+
document.getElementById('api-config-section').classList.add('hidden');
|
| 294 |
+
});
|
| 295 |
+
|
| 296 |
+
// Load saved API URL if exists
|
| 297 |
+
const savedApiUrl = localStorage.getItem('ytdl_api_url');
|
| 298 |
+
if (savedApiUrl) {
|
| 299 |
+
document.getElementById('api-url').value = savedApiUrl;
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
// Demo functionality for video analysis
|
| 303 |
+
const analyzeBtn = document.querySelector('.bg-red-600');
|
| 304 |
+
const videoInfoSection = document.getElementById('video-info');
|
| 305 |
+
|
| 306 |
+
analyzeBtn.addEventListener('click', () => {
|
| 307 |
+
// Show video info section
|
| 308 |
+
videoInfoSection.classList.remove('hidden');
|
| 309 |
+
|
| 310 |
+
// Scroll to video info
|
| 311 |
+
videoInfoSection.scrollIntoView({ behavior: 'smooth' });
|
| 312 |
+
|
| 313 |
+
// Demo data - in a real app this would come from your API
|
| 314 |
+
document.getElementById('video-thumbnail').src = 'https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg';
|
| 315 |
+
document.getElementById('video-title').textContent = 'Never Gonna Give You Up - Rick Astley';
|
| 316 |
+
document.getElementById('channel-icon').src = 'https://yt3.googleusercontent.com/ytc/APkrFKZWeMCsx4Q9e_Hm6nhOOUQ3fv96QGUXiMr1-pPP=s176-c-k-c0x00ffffff-no-rj';
|
| 317 |
+
document.getElementById('channel-name').textContent = 'Rick Astley';
|
| 318 |
+
document.getElementById('video-views').textContent = '1.2B views • 12 years ago';
|
| 319 |
+
document.getElementById('video-duration').textContent = 'Duration: 3:32';
|
| 320 |
+
|
| 321 |
+
// Add format options
|
| 322 |
+
const formatContainer = document.querySelector('.grid.grid-cols-2');
|
| 323 |
+
formatContainer.innerHTML = '';
|
| 324 |
+
|
| 325 |
+
const formats = [
|
| 326 |
+
{ quality: '1080p', type: 'MP4', size: '85MB' },
|
| 327 |
+
{ quality: '720p', type: 'MP4', size: '45MB' },
|
| 328 |
+
{ quality: '480p', type: 'MP4', size: '25MB' },
|
| 329 |
+
{ quality: '360p', type: 'MP4', size: '15MB' },
|
| 330 |
+
{ quality: '144p', type: '3GP', size: '5MB' },
|
| 331 |
+
{ quality: 'High', type: 'MP3', size: '8MB' }
|
| 332 |
+
];
|
| 333 |
+
|
| 334 |
+
formats.forEach(format => {
|
| 335 |
+
const formatEl = document.createElement('div');
|
| 336 |
+
formatEl.className = 'border border-gray-200 rounded-lg p-3 cursor-pointer hover:border-red-400 transition';
|
| 337 |
+
formatEl.innerHTML = `
|
| 338 |
+
<div class="font-semibold text-gray-800">${format.quality}</div>
|
| 339 |
+
<div class="text-sm text-gray-500">${format.type} • ${format.size}</div>
|
| 340 |
+
`;
|
| 341 |
+
formatContainer.appendChild(formatEl);
|
| 342 |
+
|
| 343 |
+
formatEl.addEventListener('click', () => {
|
| 344 |
+
// Remove active class from all formats
|
| 345 |
+
document.querySelectorAll('.border-gray-200').forEach(el => {
|
| 346 |
+
el.classList.remove('border-red-500', 'bg-red-50');
|
| 347 |
+
});
|
| 348 |
+
// Add active class to clicked format
|
| 349 |
+
formatEl.classList.add('border-red-500', 'bg-red-50');
|
| 350 |
+
});
|
| 351 |
+
});
|
| 352 |
+
});
|
| 353 |
+
</script>
|
| 354 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rashadh/yt-dl" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 355 |
+
</html>
|