Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +661 -19
- prompts.txt +6 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: green
|
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: megaflix-ultra
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: yellow
|
5 |
colorTo: green
|
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,661 @@
|
|
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="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>MegaFlix Ultra - Streaming Automatisé</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 |
+
<!-- Player JS -->
|
10 |
+
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
11 |
+
<script src="https://cdn.jsdelivr.net/npm/dashjs/dist/dash.all.min.js"></script>
|
12 |
+
<style>
|
13 |
+
.film-card:hover .play-icon {
|
14 |
+
opacity: 1;
|
15 |
+
transform: scale(1.2);
|
16 |
+
transition: all 0.3s ease;
|
17 |
+
}
|
18 |
+
.player-container {
|
19 |
+
aspect-ratio: 16/9;
|
20 |
+
background: #000;
|
21 |
+
}
|
22 |
+
.server-status.online {
|
23 |
+
background-color: #10B981;
|
24 |
+
box-shadow: 0 0 10px #10B981;
|
25 |
+
}
|
26 |
+
.server-status.offline {
|
27 |
+
background-color: #EF4444;
|
28 |
+
}
|
29 |
+
.server-status.loading {
|
30 |
+
background-color: #F59E0B;
|
31 |
+
animation: pulse 2s infinite;
|
32 |
+
}
|
33 |
+
@keyframes pulse {
|
34 |
+
0% { opacity: 1; }
|
35 |
+
50% { opacity: 0.5; }
|
36 |
+
100% { opacity: 1; }
|
37 |
+
}
|
38 |
+
.auto-import-progress {
|
39 |
+
height: 4px;
|
40 |
+
background: linear-gradient(90deg, #EC4899, #8B5CF6);
|
41 |
+
animation: progress 2s ease infinite;
|
42 |
+
background-size: 200% 100%;
|
43 |
+
}
|
44 |
+
@keyframes progress {
|
45 |
+
0% { background-position: 0% 50%; }
|
46 |
+
50% { background-position: 100% 50%; }
|
47 |
+
100% { background-position: 0% 50%; }
|
48 |
+
}
|
49 |
+
#videoElement {
|
50 |
+
width: 100%;
|
51 |
+
height: 100%;
|
52 |
+
}
|
53 |
+
</style>
|
54 |
+
</head>
|
55 |
+
<body class="bg-gray-900 text-white font-sans">
|
56 |
+
<!-- Barre de navigation avancée -->
|
57 |
+
<nav class="bg-black py-3 px-6 shadow-xl sticky top-0 z-50">
|
58 |
+
<div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
|
59 |
+
<div class="flex items-center space-x-8 w-full md:w-auto">
|
60 |
+
<div class="flex items-center">
|
61 |
+
<i class="fas fa-film text-red-500 text-2xl mr-2"></i>
|
62 |
+
<h1 class="text-2xl font-extrabold bg-gradient-to-r from-red-500 to-purple-600 bg-clip-text text-transparent">MegaFlix Ultra</h1>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<div class="hidden lg:flex space-x-6">
|
66 |
+
<a href="#" class="hover:text-red-400 flex items-center">
|
67 |
+
<i class="fas fa-home mr-2"></i> Accueil
|
68 |
+
</a>
|
69 |
+
<a href="#" class="hover:text-red-400 flex items-center">
|
70 |
+
<i class="fas fa-bolt mr-2"></i> Tendances
|
71 |
+
</a>
|
72 |
+
<a href="#" class="hover:text-red-400 flex items-center">
|
73 |
+
<i class="fas fa-cloud-upload-alt mr-2"></i> Import Auto
|
74 |
+
</a>
|
75 |
+
<a href="#" class="hover:text-red-400 flex items-center">
|
76 |
+
<i class="fas fa-server mr-2"></i> Serveurs
|
77 |
+
</a>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
|
81 |
+
<div class="flex items-center space-x-4 mt-4 md:mt-0 w-full md:w-auto justify-between">
|
82 |
+
<div class="relative flex-grow max-w-xl mr-4">
|
83 |
+
<input type="text" placeholder="Rechercher 975K+ films..."
|
84 |
+
class="bg-gray-800 rounded-full py-2 px-4 pl-10 focus:outline-none focus:ring-2 focus:ring-red-500 w-full">
|
85 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
86 |
+
</div>
|
87 |
+
<div class="flex space-x-3">
|
88 |
+
<button class="bg-gradient-to-r from-red-600 to-purple-600 hover:from-red-700 hover:to-purple-700 py-2 px-4 rounded-full font-medium flex items-center">
|
89 |
+
<i class="fas fa-user-circle mr-2"></i> Connexion
|
90 |
+
</button>
|
91 |
+
<button id="darkModeToggle" class="bg-gray-800 hover:bg-gray-700 p-2 rounded-full">
|
92 |
+
<i class="fas fa-moon"></i>
|
93 |
+
</button>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</nav>
|
98 |
+
|
99 |
+
<!-- Dashboard d'administration -->
|
100 |
+
<div class="container mx-auto px-4 py-6">
|
101 |
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6 mb-8">
|
102 |
+
<!-- Stat Serveurs -->
|
103 |
+
<div class="bg-gray-800 rounded-xl p-5 shadow-lg border-l-4 border-red-500">
|
104 |
+
<div class="flex justify-between items-start">
|
105 |
+
<div>
|
106 |
+
<p class="text-gray-400">Serveurs actifs</p>
|
107 |
+
<h3 class="text-2xl font-bold">14/16</h3>
|
108 |
+
</div>
|
109 |
+
<i class="fas fa-server text-red-400 text-2xl"></i>
|
110 |
+
</div>
|
111 |
+
<div class="mt-4">
|
112 |
+
<div class="flex items-center text-sm">
|
113 |
+
<span class="server-status online w-3 h-3 rounded-full mr-2"></span>
|
114 |
+
<span>Cluster EU-1: 5/5</span>
|
115 |
+
</div>
|
116 |
+
<div class="flex items-center text-sm mt-1">
|
117 |
+
<span class="server-status online w-3 h-3 rounded-full mr-2"></span>
|
118 |
+
<span>Cluster US-1: 4/5</span>
|
119 |
+
</div>
|
120 |
+
<div class="flex items-center text-sm mt-1">
|
121 |
+
<span class="server-status loading w-3 h-3 rounded-full mr-2"></span>
|
122 |
+
<span>Cluster ASIA-1: 3/4</span>
|
123 |
+
</div>
|
124 |
+
<div class="flex items-center text-sm mt-1">
|
125 |
+
<span class="server-status offline w-3 h-3 rounded-full mr-2"></span>
|
126 |
+
<span>Backup-1: 2/2</span>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
|
131 |
+
<!-- Stat Films -->
|
132 |
+
<div class="bg-gray-800 rounded-xl p-5 shadow-lg border-l-4 border-purple-500">
|
133 |
+
<div class="flex justify-between items-start">
|
134 |
+
<div>
|
135 |
+
<p class="text-gray-400">Films disponibles</p>
|
136 |
+
<h3 class="text-2xl font-bold" id="totalMovies">975,623</h3>
|
137 |
+
</div>
|
138 |
+
<i class="fas fa-film text-purple-400 text-2xl"></i>
|
139 |
+
</div>
|
140 |
+
<div class="mt-4">
|
141 |
+
<div class="text-sm flex justify-between">
|
142 |
+
<span>FR: 423,156</span>
|
143 |
+
<span>VO: 552,467</span>
|
144 |
+
</div>
|
145 |
+
<div class="w-full bg-gray-700 rounded-full h-2 mt-2">
|
146 |
+
<div class="bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full" style="width: 43%"></div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
|
151 |
+
<!-- Import Auto -->
|
152 |
+
<div class="bg-gray-800 rounded-xl p-5 shadow-lg border-l-4 border-blue-500">
|
153 |
+
<div class="flex justify-between items-start">
|
154 |
+
<div>
|
155 |
+
<p class="text-gray-400">Import automatique</p>
|
156 |
+
<h3 class="text-2xl font-bold">Actif</h3>
|
157 |
+
</div>
|
158 |
+
<i class="fas fa-robot text-blue-400 text-2xl"></i>
|
159 |
+
</div>
|
160 |
+
<div class="mt-4">
|
161 |
+
<p class="text-sm">Dernier import: <span class="font-medium" id="lastImport">2 min ago</span></p>
|
162 |
+
<p class="text-sm mt-1">Prochain scan: <span class="font-medium" id="nextScan">dans 58 min</span></p>
|
163 |
+
<div class="auto-import-progress rounded-full mt-2"></div>
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
<!-- Lecteur -->
|
168 |
+
<div class="bg-gray-800 rounded-xl p-5 shadow-lg border-l-4 border-green-500">
|
169 |
+
<div class="flex justify-between items-start">
|
170 |
+
<div>
|
171 |
+
<p class="text-gray-400">Lecteur Ultra HD</p>
|
172 |
+
<h3 class="text-2xl font-bold">4K HDR</h3>
|
173 |
+
</div>
|
174 |
+
<i class="fas fa-play-circle text-green-400 text-2xl"></i>
|
175 |
+
</div>
|
176 |
+
<div class="mt-4">
|
177 |
+
<p class="text-sm">Formats supportés:</p>
|
178 |
+
<div class="flex flex-wrap gap-1 mt-1">
|
179 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">HLS</span>
|
180 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">DASH</span>
|
181 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">MP4</span>
|
182 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">MKV</span>
|
183 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">AV1</span>
|
184 |
+
<span class="bg-gray-700 px-2 py-1 rounded text-xs">HEVC</span>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<!-- Lecteur vidéo avancé -->
|
191 |
+
<section class="mb-12 bg-black rounded-xl overflow-hidden shadow-2xl">
|
192 |
+
<div class="player-container" id="ultraPlayer">
|
193 |
+
<video id="videoElement" controls autoplay muted></video>
|
194 |
+
</div>
|
195 |
+
|
196 |
+
<!-- Contrôles du lecteur -->
|
197 |
+
<div class="bg-gray-800 p-4 flex flex-wrap items-center justify-between">
|
198 |
+
<div class="flex items-center space-x-4">
|
199 |
+
<button id="playBtn" class="bg-red-600 hover:bg-red-700 p-3 rounded-full">
|
200 |
+
<i class="fas fa-pause"></i>
|
201 |
+
</button>
|
202 |
+
<div class="flex items-center space-x-2">
|
203 |
+
<button class="text-gray-400 hover:text-white">
|
204 |
+
<i class="fas fa-step-backward"></i>
|
205 |
+
</button>
|
206 |
+
<button class="text-gray-400 hover:text-white">
|
207 |
+
<i class="fas fa-step-forward"></i>
|
208 |
+
</button>
|
209 |
+
</div>
|
210 |
+
<span id="currentTime" class="text-sm">00:00:00</span>
|
211 |
+
<span class="text-gray-400">/</span>
|
212 |
+
<span id="duration" class="text-sm">00:00:00</span>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<div class="flex items-center space-x-4 mt-2 sm:mt-0">
|
216 |
+
<div class="hidden sm:flex items-center space-x-2">
|
217 |
+
<button class="text-gray-400 hover:text-white">
|
218 |
+
<i class="fas fa-closed-captioning"></i>
|
219 |
+
</button>
|
220 |
+
<button class="text-gray-400 hover:text-white">
|
221 |
+
<i class="fas fa-cog"></i>
|
222 |
+
</button>
|
223 |
+
</div>
|
224 |
+
<div class="flex items-center space-x-2">
|
225 |
+
<button id="qualityBtn" class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm">
|
226 |
+
Auto (4K)
|
227 |
+
</button>
|
228 |
+
<div class="relative">
|
229 |
+
<button id="serverBtn" class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm flex items-center">
|
230 |
+
<i class="fas fa-server mr-1"></i> EU-1
|
231 |
+
</button>
|
232 |
+
<div id="serverDropdown" class="hidden absolute right-0 mt-1 w-48 bg-gray-800 rounded shadow-lg z-10">
|
233 |
+
<div class="p-2 border-b border-gray-700">
|
234 |
+
<p class="text-xs text-gray-400">Serveurs disponibles</p>
|
235 |
+
</div>
|
236 |
+
<div class="max-h-60 overflow-y-auto">
|
237 |
+
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 flex items-center">
|
238 |
+
<span class="server-status online w-2 h-2 rounded-full mr-2"></span>
|
239 |
+
EU-1 (Ping: 12ms)
|
240 |
+
</a>
|
241 |
+
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 flex items-center">
|
242 |
+
<span class="server-status online w-2 h-2 rounded-full mr-2"></span>
|
243 |
+
EU-2 (Ping: 18ms)
|
244 |
+
</a>
|
245 |
+
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 flex items-center">
|
246 |
+
<span class="server-status online w-2 h-2 rounded-full mr-2"></span>
|
247 |
+
US-1 (Ping: 42ms)
|
248 |
+
</a>
|
249 |
+
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700 flex items-center">
|
250 |
+
<span class="server-status loading w-2 h-2 rounded-full mr-2"></span>
|
251 |
+
ASIA-1 (Ping: 128ms)
|
252 |
+
</a>
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
</div>
|
257 |
+
</div>
|
258 |
+
</div>
|
259 |
+
</section>
|
260 |
+
|
261 |
+
<!-- Catalogue de films -->
|
262 |
+
<section class="mb-12">
|
263 |
+
<div class="flex justify-between items-center mb-6">
|
264 |
+
<h3 class="text-2xl font-bold flex items-center">
|
265 |
+
<i class="fas fa-bolt text-red-500 mr-3"></i>
|
266 |
+
<span>Nouveautés ajoutées automatiquement</span>
|
267 |
+
</h3>
|
268 |
+
<div class="flex items-center text-sm bg-gray-800 px-3 py-1 rounded-full">
|
269 |
+
<i class="fas fa-sync-alt text-gray-400 mr-2 animate-spin"></i>
|
270 |
+
<span>Mise à jour en temps réel</span>
|
271 |
+
</div>
|
272 |
+
</div>
|
273 |
+
|
274 |
+
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6" id="moviesGrid">
|
275 |
+
<!-- Les films seront chargés ici par JavaScript -->
|
276 |
+
</div>
|
277 |
+
</section>
|
278 |
+
|
279 |
+
<!-- Système d'import automatique -->
|
280 |
+
<section class="mb-12 bg-gray-800 rounded-xl p-6 shadow-lg">
|
281 |
+
<div class="flex justify-between items-center mb-6">
|
282 |
+
<h3 class="text-2xl font-bold flex items-center">
|
283 |
+
<i class="fas fa-robot text-blue-500 mr-3"></i>
|
284 |
+
<span>Système d'import automatique</span>
|
285 |
+
</h3>
|
286 |
+
<button id="toggleAutoImport" class="bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 py-2 px-4 rounded-full font-medium flex items-center">
|
287 |
+
<i class="fas fa-power-off mr-2"></i> Actif
|
288 |
+
</button>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
292 |
+
<div class="bg-gray-700 rounded-lg p-4">
|
293 |
+
<div class="flex justify-between items-center mb-3">
|
294 |
+
<h4 class="font-semibold">Sources configurées</h4>
|
295 |
+
<span class="bg-blue-600 text-white px-2 py-0.5 rounded text-xs">12/12</span>
|
296 |
+
</div>
|
297 |
+
<div class="space-y-2">
|
298 |
+
<div class="flex items-center justify-between text-sm">
|
299 |
+
<span>Torrents FR</span>
|
300 |
+
<span class="text-green-400"><i class="fas fa-check-circle"></i></span>
|
301 |
+
</div>
|
302 |
+
<div class="flex items-center justify-between text-sm">
|
303 |
+
<span>Usenet</span>
|
304 |
+
<span class="text-green-400"><i class="fas fa-check-circle"></i></span>
|
305 |
+
</div>
|
306 |
+
<div class="flex items-center justify-between text-sm">
|
307 |
+
<span>DDL</span>
|
308 |
+
<span class="text-green-400"><i class="fas fa-check-circle"></i></span>
|
309 |
+
</div>
|
310 |
+
<div class="flex items-center justify-between text-sm">
|
311 |
+
<span>FTP Premium</span>
|
312 |
+
<span class="text-green-400"><i class="fas fa-check-circle"></i></span>
|
313 |
+
</div>
|
314 |
+
</div>
|
315 |
+
</div>
|
316 |
+
|
317 |
+
<div class="bg-gray-700 rounded-lg p-4">
|
318 |
+
<div class="flex justify-between items-center mb-3">
|
319 |
+
<h4 class="font-semibold">Derniers imports</h4>
|
320 |
+
<span class="bg-purple-600 text-white px-2 py-0.5 rounded text-xs">42 aujourd'hui</span>
|
321 |
+
</div>
|
322 |
+
<div class="space-y-2">
|
323 |
+
<div class="flex items-center justify-between text-sm">
|
324 |
+
<span class="truncate">Interstellar.2014.4K.HDR.FR.mkv</span>
|
325 |
+
<span class="text-gray-400 whitespace-nowrap">12 min</span>
|
326 |
+
</div>
|
327 |
+
<div class="flex items-center justify-between text-sm">
|
328 |
+
<span class="truncate">Inception.2010.REMUX.1080p.FR.mkv</span>
|
329 |
+
<span class="text-gray-400 whitespace-nowrap">27 min</span>
|
330 |
+
</div>
|
331 |
+
<div class="flex items-center justify-between text-sm">
|
332 |
+
<span class="truncate">The.Dark.Knight.2008.4K.HDR.FR.mkv</span>
|
333 |
+
<span class="text-gray-400 whitespace-nowrap">1h 03</span>
|
334 |
+
</div>
|
335 |
+
<div class="flex items-center justify-between text-sm">
|
336 |
+
<span class="truncate">Pulp.Fiction.1994.CC.1080p.FR.mkv</span>
|
337 |
+
<span class="text-gray-400 whitespace-nowrap">1h 22</span>
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
|
342 |
+
<div class="bg-gray-700 rounded-lg p-4">
|
343 |
+
<div class="flex justify-between items-center mb-3">
|
344 |
+
<h4 class="font-semibold">Statistiques</h4>
|
345 |
+
<span class="bg-green-600 text-white px-2 py-0.5 rounded text-xs">+12%</span>
|
346 |
+
</div>
|
347 |
+
<div class="space-y-3">
|
348 |
+
<div>
|
349 |
+
<div class="flex justify-between text-xs mb-1">
|
350 |
+
<span>Espace disque</span>
|
351 |
+
<span>1.2PB / 2PB</span>
|
352 |
+
</div>
|
353 |
+
<div class="w-full bg-gray-600 rounded-full h-2">
|
354 |
+
<div class="bg-gradient-to-r from-green-500 to-blue-500 h-2 rounded-full" style="width: 60%"></div>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
<div>
|
358 |
+
<div class="flex justify-between text-xs mb-1">
|
359 |
+
<span>Bande passante</span>
|
360 |
+
<span>42Gbps / 50Gbps</span>
|
361 |
+
</div>
|
362 |
+
<div class="w-full bg-gray-600 rounded-full h-2">
|
363 |
+
<div class="bg-gradient-to-r from-yellow-500 to-red-500 h-2 rounded-full" style="width: 84%"></div>
|
364 |
+
</div>
|
365 |
+
</div>
|
366 |
+
<div>
|
367 |
+
<div class="flex justify-between text-xs mb-1">
|
368 |
+
<span>Nouveaux films/jour</span>
|
369 |
+
<span>Moy: 38</span>
|
370 |
+
</div>
|
371 |
+
<div class="w-full bg-gray-600 rounded-full h-2">
|
372 |
+
<div class="bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full" style="width: 76%"></div>
|
373 |
+
</div>
|
374 |
+
</div>
|
375 |
+
</div>
|
376 |
+
</div>
|
377 |
+
</div>
|
378 |
+
</section>
|
379 |
+
</div>
|
380 |
+
|
381 |
+
<!-- Pied de page -->
|
382 |
+
<footer class="bg-black py-12 px-6 border-t border-gray-800">
|
383 |
+
<div class="container mx-auto grid grid-cols-1 md:grid-cols-4 gap-8">
|
384 |
+
<div>
|
385 |
+
<div class="flex items-center mb-4">
|
386 |
+
<i class="fas fa-film text-red-500 text-2xl mr-2"></i>
|
387 |
+
<h4 class="text-xl font-extrabold bg-gradient-to-r from-red-500 to-purple-600 bg-clip-text text-transparent">MegaFlix Ultra</h4>
|
388 |
+
</div>
|
389 |
+
<p class="text-gray-400 text-sm">La plateforme de streaming français la plus avancée avec système d'import automatique et lecteur 8K HDR.</p>
|
390 |
+
<div class="flex space-x-4 mt-4 text-xl">
|
391 |
+
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-discord"></i></a>
|
392 |
+
<a href="#" class="text-gray-400 hover:text-blue-400"><i class="fab fa-telegram"></i></a>
|
393 |
+
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-youtube"></i></a>
|
394 |
+
</div>
|
395 |
+
</div>
|
396 |
+
|
397 |
+
<div>
|
398 |
+
<h5 class="font-semibold mb-4 text-lg">Navigation</h5>
|
399 |
+
<ul class="space-y-3 text-gray-400">
|
400 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-red-500"></i> Accueil</a></li>
|
401 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-red-500"></i> Films</a></li>
|
402 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-red-500"></i> Séries</a></li>
|
403 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-red-500"></i> Nouveautés</a></li>
|
404 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-red-500"></i> Serveurs</a></li>
|
405 |
+
</ul>
|
406 |
+
</div>
|
407 |
+
|
408 |
+
<div>
|
409 |
+
<h5 class="font-semibold mb-4 text-lg">Ressources</h5>
|
410 |
+
<ul class="space-y-3 text-gray-400">
|
411 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-blue-500"></i> API Developer</a></li>
|
412 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-blue-500"></i> Documentation</a></li>
|
413 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-blue-500"></i> Status Serveurs</a></li>
|
414 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-blue-500"></i> Changelog</a></li>
|
415 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-blue-500"></i> Blog Tech</a></li>
|
416 |
+
</ul>
|
417 |
+
</div>
|
418 |
+
|
419 |
+
<div>
|
420 |
+
<h5 class="font-semibold mb-4 text-lg">Support</h5>
|
421 |
+
<ul class="space-y-3 text-gray-400">
|
422 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-green-500"></i> Centre d'aide</a></li>
|
423 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-green-500"></i> FAQ</a></li>
|
424 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-green-500"></i> Contact</a></li>
|
425 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-green-500"></i> Discord</a></li>
|
426 |
+
<li><a href="#" class="hover:text-white flex items-center"><i class="fas fa-chevron-right text-xs mr-2 text-green-500"></i> Twitter</a></li>
|
427 |
+
</ul>
|
428 |
+
</div>
|
429 |
+
</div>
|
430 |
+
|
431 |
+
<div class="border-t border-gray-800 mt-12 pt-8">
|
432 |
+
<div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
|
433 |
+
<p class="text-gray-500 text-sm">© 2023 MegaFlix Ultra. Tous droits réservés.</p>
|
434 |
+
<div class="flex space-x-6 mt-4 md:mt-0">
|
435 |
+
<a href="#" class="text-gray-500 hover:text-white text-sm">CGU</a>
|
436 |
+
<a href="#" class="text-gray-500 hover:text-white text-sm">Confidentialité</a>
|
437 |
+
<a href="#" class="text-gray-500 hover:text-white text-sm">Cookies</a>
|
438 |
+
<a href="#" class="text-gray-500 hover:text-white text-sm">DMCA</a>
|
439 |
+
</div>
|
440 |
+
</div>
|
441 |
+
</div>
|
442 |
+
</footer>
|
443 |
+
|
444 |
+
<script>
|
445 |
+
// Configuration de l'API TMDB
|
446 |
+
const TMDB_API_KEY = 'fb437b10727a5a4eb8d9134e29c82ae0';
|
447 |
+
const TMDB_BASE_URL = 'https://api.themoviedb.org/3';
|
448 |
+
const TMDB_IMAGE_BASE = 'https://image.tmdb.org/t/p/w500';
|
449 |
+
|
450 |
+
// Variables globales
|
451 |
+
let currentMovies = [];
|
452 |
+
let currentVideoIndex = 0;
|
453 |
+
let videoPlayer;
|
454 |
+
let autoPlayInterval;
|
455 |
+
|
456 |
+
document.addEventListener('DOMContentLoaded', function() {
|
457 |
+
// Initialisation
|
458 |
+
initPlayer();
|
459 |
+
loadTrendingMovies();
|
460 |
+
|
461 |
+
// Mode sombre/clair
|
462 |
+
const darkModeToggle = document.getElementById('darkModeToggle');
|
463 |
+
darkModeToggle.addEventListener('click', function() {
|
464 |
+
document.documentElement.classList.toggle('dark');
|
465 |
+
const icon = darkModeToggle.querySelector('i');
|
466 |
+
if (document.documentElement.classList.contains('dark')) {
|
467 |
+
icon.classList.replace('fa-sun', 'fa-moon');
|
468 |
+
} else {
|
469 |
+
icon.classList.replace('fa-moon', 'fa-sun');
|
470 |
+
}
|
471 |
+
});
|
472 |
+
|
473 |
+
// Gestion des serveurs
|
474 |
+
const serverBtn = document.getElementById('serverBtn');
|
475 |
+
const serverDropdown = document.getElementById('serverDropdown');
|
476 |
+
|
477 |
+
serverBtn.addEventListener('click', function(e) {
|
478 |
+
e.stopPropagation();
|
479 |
+
serverDropdown.classList.toggle('hidden');
|
480 |
+
});
|
481 |
+
|
482 |
+
document.addEventListener('click', function() {
|
483 |
+
serverDropdown.classList.add('hidden');
|
484 |
+
});
|
485 |
+
|
486 |
+
// Contrôles du lecteur
|
487 |
+
const playBtn = document.getElementById('playBtn');
|
488 |
+
playBtn.addEventListener('click', togglePlayPause);
|
489 |
+
|
490 |
+
// Système d'import automatique
|
491 |
+
const toggleAutoImport = document.getElementById('toggleAutoImport');
|
492 |
+
let autoImportActive = true;
|
493 |
+
|
494 |
+
toggleAutoImport.addEventListener('click', function() {
|
495 |
+
autoImportActive = !autoImportActive;
|
496 |
+
if (autoImportActive) {
|
497 |
+
toggleAutoImport.innerHTML = '<i class="fas fa-power-off mr-2"></i> Actif';
|
498 |
+
toggleAutoImport.classList.remove('bg-gradient-to-r', 'from-red-600', 'to-yellow-600');
|
499 |
+
toggleAutoImport.classList.add('bg-gradient-to-r', 'from-green-600', 'to-blue-600');
|
500 |
+
console.log("Système d'import automatique activé");
|
501 |
+
} else {
|
502 |
+
toggleAutoImport.innerHTML = '<i class="fas fa-power-off mr-2"></i> Inactif';
|
503 |
+
toggleAutoImport.classList.remove('bg-gradient-to-r', 'from-green-600', 'to-blue-600');
|
504 |
+
toggleAutoImport.classList.add('bg-gradient-to-r', 'from-red-600', 'to-yellow-600');
|
505 |
+
console.log("Système d'import automatique désactivé");
|
506 |
+
}
|
507 |
+
});
|
508 |
+
});
|
509 |
+
|
510 |
+
// Initialiser le lecteur vidéo
|
511 |
+
function initPlayer() {
|
512 |
+
videoPlayer = document.getElementById('videoElement');
|
513 |
+
|
514 |
+
// Mettre à jour le temps actuel
|
515 |
+
videoPlayer.addEventListener('timeupdate', function() {
|
516 |
+
document.getElementById('currentTime').textContent = formatTime(videoPlayer.currentTime);
|
517 |
+
});
|
518 |
+
|
519 |
+
// Mettre à jour la durée totale
|
520 |
+
videoPlayer.addEventListener('loadedmetadata', function() {
|
521 |
+
document.getElementById('duration').textContent = formatTime(videoPlayer.duration);
|
522 |
+
});
|
523 |
+
|
524 |
+
// Passer au film suivant quand la vidéo se termine
|
525 |
+
videoPlayer.addEventListener('ended', playNextMovie);
|
526 |
+
|
527 |
+
// Démarrer l'autoplay
|
528 |
+
startAutoPlay();
|
529 |
+
}
|
530 |
+
|
531 |
+
// Charger les films tendances depuis TMDB
|
532 |
+
async function loadTrendingMovies() {
|
533 |
+
try {
|
534 |
+
const response = await fetch(`${TMDB_BASE_URL}/trending/movie/day?api_key=${TMDB_API_KEY}&language=fr-FR`);
|
535 |
+
const data = await response.json();
|
536 |
+
|
537 |
+
currentMovies = data.results.slice(0, 12); // Prendre les 12 premiers films
|
538 |
+
document.getElementById('totalMovies').textContent = data.total_results.toLocaleString();
|
539 |
+
|
540 |
+
// Afficher les films
|
541 |
+
displayMovies(currentMovies);
|
542 |
+
|
543 |
+
// Charger le premier film
|
544 |
+
if (currentMovies.length > 0) {
|
545 |
+
loadMovieVideo(currentMovies[0].id);
|
546 |
+
}
|
547 |
+
} catch (error) {
|
548 |
+
console.error('Erreur lors du chargement des films:', error);
|
549 |
+
}
|
550 |
+
}
|
551 |
+
|
552 |
+
// Afficher les films dans la grille
|
553 |
+
function displayMovies(movies) {
|
554 |
+
const moviesGrid = document.getElementById('moviesGrid');
|
555 |
+
moviesGrid.innerHTML = '';
|
556 |
+
|
557 |
+
movies.forEach((movie, index) => {
|
558 |
+
const movieCard = document.createElement('div');
|
559 |
+
movieCard.className = 'film-card relative group rounded-xl overflow-hidden shadow-lg transition-transform duration-300 hover:scale-105';
|
560 |
+
movieCard.innerHTML = `
|
561 |
+
<div class="relative cursor-pointer" onclick="playMovie(${index})">
|
562 |
+
<img src="${movie.poster_path ? TMDB_IMAGE_BASE + movie.poster_path : 'https://via.placeholder.com/300x450'}"
|
563 |
+
alt="${movie.title}" class="w-full h-64 object-cover">
|
564 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black via-transparent to-transparent opacity-70"></div>
|
565 |
+
<div class="absolute bottom-0 left-0 p-3">
|
566 |
+
<span class="bg-red-600 text-white px-2 py-0.5 rounded text-xs">Nouveau</span>
|
567 |
+
</div>
|
568 |
+
<div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition">
|
569 |
+
<div class="play-icon bg-red-600 rounded-full p-4 opacity-0 transform transition group-hover:opacity-100">
|
570 |
+
<i class="fas fa-play text-white text-xl"></i>
|
571 |
+
</div>
|
572 |
+
</div>
|
573 |
+
</div>
|
574 |
+
<div class="p-3 bg-gray-800">
|
575 |
+
<h4 class="font-semibold truncate">${movie.title}</h4>
|
576 |
+
<div class="flex justify-between items-center mt-2 text-sm text-gray-400">
|
577 |
+
<span>${movie.release_date ? movie.release_date.substring(0, 4) : 'N/A'}</span>
|
578 |
+
<div class="flex space-x-1">
|
579 |
+
<span class="bg-red-600 text-white px-1.5 py-0.5 rounded text-xs">HD</span>
|
580 |
+
<span class="bg-blue-600 text-white px-1.5 py-0.5 rounded text-xs">FR</span>
|
581 |
+
</div>
|
582 |
+
</div>
|
583 |
+
</div>
|
584 |
+
`;
|
585 |
+
moviesGrid.appendChild(movieCard);
|
586 |
+
});
|
587 |
+
}
|
588 |
+
|
589 |
+
// Charger la vidéo d'un film
|
590 |
+
async function loadMovieVideo(movieId) {
|
591 |
+
try {
|
592 |
+
// En réalité, vous utiliseriez votre propre système de streaming ici
|
593 |
+
// Pour la démo, nous utilisons une vidéo de test
|
594 |
+
const videoUrl = 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8';
|
595 |
+
|
596 |
+
if (Hls.isSupported()) {
|
597 |
+
const hls = new Hls();
|
598 |
+
hls.loadSource(videoUrl);
|
599 |
+
hls.attachMedia(videoPlayer);
|
600 |
+
hls.on(Hls.Events.MANIFEST_PARSED, function() {
|
601 |
+
videoPlayer.play();
|
602 |
+
});
|
603 |
+
} else if (videoPlayer.canPlayType('application/vnd.apple.mpegurl')) {
|
604 |
+
videoPlayer.src = videoUrl;
|
605 |
+
videoPlayer.addEventListener('loadedmetadata', function() {
|
606 |
+
videoPlayer.play();
|
607 |
+
});
|
608 |
+
}
|
609 |
+
|
610 |
+
// Mettre à jour l'interface
|
611 |
+
document.getElementById('playBtn').innerHTML = '<i class="fas fa-pause"></i>';
|
612 |
+
} catch (error) {
|
613 |
+
console.error('Erreur lors du chargement de la vidéo:', error);
|
614 |
+
}
|
615 |
+
}
|
616 |
+
|
617 |
+
// Jouer un film spécifique
|
618 |
+
function playMovie(index) {
|
619 |
+
currentVideoIndex = index;
|
620 |
+
const movie = currentMovies[index];
|
621 |
+
loadMovieVideo(movie.id);
|
622 |
+
}
|
623 |
+
|
624 |
+
// Jouer le film suivant
|
625 |
+
function playNextMovie() {
|
626 |
+
currentVideoIndex = (currentVideoIndex + 1) % currentMovies.length;
|
627 |
+
const nextMovie = currentMovies[currentVideoIndex];
|
628 |
+
loadMovieVideo(nextMovie.id);
|
629 |
+
}
|
630 |
+
|
631 |
+
// Basculer entre lecture et pause
|
632 |
+
function togglePlayPause() {
|
633 |
+
if (videoPlayer.paused) {
|
634 |
+
videoPlayer.play();
|
635 |
+
document.getElementById('playBtn').innerHTML = '<i class="fas fa-pause"></i>';
|
636 |
+
} else {
|
637 |
+
videoPlayer.pause();
|
638 |
+
document.getElementById('playBtn').innerHTML = '<i class="fas fa-play"></i>';
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
// Démarrer l'autoplay
|
643 |
+
function startAutoPlay() {
|
644 |
+
// Vérifier toutes les 30 secondes si la vidéo est bloquée
|
645 |
+
autoPlayInterval = setInterval(() => {
|
646 |
+
if (videoPlayer.readyState > 0 && videoPlayer.paused && !videoPlayer.ended) {
|
647 |
+
videoPlayer.play().catch(e => console.log('Auto-play was prevented:', e));
|
648 |
+
}
|
649 |
+
}, 30000);
|
650 |
+
}
|
651 |
+
|
652 |
+
// Formater le temps (HH:MM:SS)
|
653 |
+
function formatTime(seconds) {
|
654 |
+
const h = Math.floor(seconds / 3600);
|
655 |
+
const m = Math.floor((seconds % 3600) / 60);
|
656 |
+
const s = Math.floor(seconds % 60);
|
657 |
+
return [h, m, s].map(v => v < 10 ? '0' + v : v).join(':');
|
658 |
+
}
|
659 |
+
</script>
|
660 |
+
<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=docto41/megaflix-ultra" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
661 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html> <html lang="fr"> <head><script>window.huggingface={variables:{"SPACE_CREATOR_USER_ID":"681375e3264f6a6cf6562c83"}};</script> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CineStream - Films avec streaming automatique</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <script> tailwind.config = { theme: { extend: { colors: { primary: '#6d28d9', secondary: '#8b5cf6', dark: '#1e1b4b', light: '#f5f3ff', }, fontFamily: { sans: ['Inter', 'sans-serif'], }, } } } </script> <style> @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); body { font-family: 'Inter', sans-serif; background-color: #0f172a; color: white; } .movie-card { transition: all 0.3s ease; } .movie-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .movie-poster { height: 450px; object-fit: cover; } .loading-spinner { animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .gradient-text { background: linear-gradient(90deg, #8b5cf6, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; } .search-input:focus { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5); } .error-message { background-color: rgba(239, 68, 68, 0.2); border-left: 4px solid #ef4444; } .placeholder-poster { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); display: flex; align-items: center; justify-content: center; } /* Style pour le lecteur vidéo */ .video-container { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; overflow: hidden; } .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } /* Style pour les boutons de streaming */ .stream-btn { transition: all 0.2s ease; } .stream-btn:hover { transform: scale(1.05); } /* Style pour la fenêtre de streaming */ .streaming-window { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 1000; display: flex; flex-direction: column; } .streaming-header { padding: 15px; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: space-between; align-items: center; } .streaming-content { flex: 1; display: flex; justify-content: center; align-items: center; } .streaming-controls { padding: 15px; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: space-between; align-items: center; } /* Style pour la sélection de serveur */ .server-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .server-btn { padding: 8px 12px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s; } .server-btn.active { background-color: #6d28d9; color: white; } .server-btn.inactive { background-color: #334155; color: #94a3b8; } /* Animation de chargement du streaming */ .stream-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; } .stream-loading-spinner { width: 50px; height: 50px; border: 5px solid rgba(255, 255, 255, 0.1); border-radius: 50%; border-top-color: #6d28d9; animation: spin 1s linear infinite; } </style> </head> <body class="min-h-screen"> <!-- Navigation --> <nav class="bg-gray-900 bg-opacity-90 backdrop-blur-md fixed w-full z-50 shadow-lg"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex items-center justify-between h-16"> <div class="flex items-center"> <div class="flex-shrink-0"> <span class="text-2xl font-bold gradient-text">CineStream</span> </div> <div class="hidden md:block ml-10"> <div class="flex space-x-4"> <a href="#" class="text-white px-3 py-2 rounded-md text-sm font-medium bg-primary">Accueil</a> <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Films</a> <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Séries</a> <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Tendances</a> </div> </div> </div> <div class="hidden md:block"> <div class="ml-4 flex items-center md:ml-6"> <div class="relative mx-4"> <input type="text" id="search-input" placeholder="Rechercher un film..." class="search-input bg-gray-800 text-white px-4 py-2 rounded-full w-64 focus:outline-none focus:ring-2 focus:ring-purple-500 transition duration-200"> <button onclick="searchMovies()" class="absolute right-3 top-2 text-gray-400 hover:text-white"> <i class="fas fa-search"></i> </button> </div> <button class="p-1 rounded-full text-gray-400 hover:text-white focus:outline-none"> <i class="fas fa-user-circle text-xl"></i> </button> </div> </div> <div class="-mr-2 flex md:hidden"> <button class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none"> <i class="fas fa-bars"></i> </button> </div> </div> </div> </nav> <!-- Main Content --> <main class="pt-24 pb-12"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <!-- Featured Section --> <section class="mb-12"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-white">Films populaires</h2> <div class="flex space-x-2"> <button onclick="filterMovies('popular')" class="px-4 py-1 rounded-full text-sm bg-primary text-white">Populaires</button> <button onclick="filterMovies('top_rated')" class="px-4 py-1 rounded-full text-sm bg-gray-700 text-white">Mieux notés</button> <button onclick="filterMovies('upcoming')" class="px-4 py-1 rounded-full text-sm bg-gray-700 text-white">Prochainement</button> </div> </div> <div id="movies-container" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6"> <!-- Movies will be loaded here --> <div class="flex justify-center items-center py-12 col-span-full"> <div class="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary loading-spinner"></div> </div> </div> <div id="load-more-container" class="mt-8 flex justify-center"> <button onclick="loadMoreMovies()" class="px-6 py-2 bg-primary text-white rounded-full hover:bg-secondary transition flex items-center"> <span>Voir plus</span> <i class="fas fa-chevron-down ml-2"></i> </button> </div> </section> <!-- Genres Section --> <section class="mb-12"> <h2 class="text-2xl font-bold text-white mb-6">Par genres</h2> <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4"> <button onclick="filterByGenre(28)" class="genre-btn px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-full text-sm">Action</button> <button onclick="filterByGenre(12)" class="genre-btn px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-full text-sm">Aventure</button> <button onclick="filterByGenre(16)" class="genre-btn px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-full text-sm">Animation</button> <button onclick="filterByGenre(35)" class="genre-btn px-4 py-2 bg-yellow-600 hover:bg-yellow-700 text-white rounded-full text-sm">Comédie</button> <button onclick="filterByGenre(80)" class="genre-btn px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded-full text-sm">Crime</button> <button onclick="filterByGenre(18)" class="genre-btn px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-full text-sm">Drame</button> </div> </section> </div> </main> <!-- Footer --> <footer class="bg-gray-900 text-gray-400 py-8"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> <div> <h3 class="text-white text-lg font-semibold mb-4">CineStream</h3> <p class="text-sm">La meilleure plateforme pour regarder des films avec streaming automatique.</p> </div> <div> <h3 class="text-white text-lg font-semibold mb-4">Navigation</h3> <ul class="space-y-2 text-sm"> <li><a href="#" class="hover:text-white">Accueil</a></li> <li><a href="#" class="hover:text-white">Films</a></li> <li><a href="#" class="hover:text-white">Séries</a></li> <li><a href="#" class="hover:text-white">Nouveautés</a></li> </ul> </div> <div> <h3 class="text-white text-lg font-semibold mb-4">Légal</h3> <ul class="space-y-2 text-sm"> <li><a href="#" class="hover:text-white">Conditions d'utilisation</a></li> <li><a href="#" class="hover:text-white">Politique de confidentialité</a></li> <li><a href="#" class="hover:text-white">DMCA</a></li> </ul> </div> <div> <h3 class="text-white text-lg font-semibold mb-4">Contact</h3> <div class="flex space-x-4"> <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a> <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a> <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a> <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-discord"></i></a> </div> </div> </div> <div class="border-t border-gray-800 mt-8 pt-8 text-sm text-center"> <p>© 2023 CineStream. Tous droits réservés.</p> </div> </div> </footer> <!-- Movie Details Modal --> <div id="movie-modal" class="fixed inset-0 z-50 hidden overflow-y-auto"> <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> <div class="fixed inset-0 transition-opacity" aria-hidden="true"> <div class="absolute inset-0 bg-gray-900 opacity-75"></div> </div> <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> <div class="inline-block align-bottom bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full"> <div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> <div class="sm:flex sm:items-start"> <div id="modal-poster" class="flex-shrink-0 w-full sm:w-1/3 mb-4 sm:mb-0 sm:mr-6"> <img class="w-full rounded-lg shadow-lg" src="" alt="Movie Poster"> </div> <div class="mt-3 text-center sm:mt-0 sm:text-left w-full sm:w-2/3"> <h3 id="modal-title" class="text-2xl leading-6 font-bold text-white mb-2"></h3> <div class="flex items-center mb-4"> <span id="modal-rating" class="bg-yellow-500 text-white text-xs font-semibold px-2 py-1 rounded mr-3"></span> <span id="modal-year" class="text-gray-300 text-sm"></span> <span id="modal-runtime" class="ml-3 text-gray-300 text-sm"></span> </div> <p id="modal-overview" class="text-gray-300 mb-4"></p> <div id="modal-genres" class="flex flex-wrap gap-2 mb-4"></div> <!-- Serveurs de streaming --> <div class="mb-4"> <h4 class="text-sm font-semibold text-gray-400 mb-2">CHOISIR UN SERVEUR :</h4> <div class="server-list"> <button onclick="selectServer('hdvip')" class="server-btn active" data-server="hdvip"> <i class="fas fa-crown mr-1"></i> HD VIP </button> <button onclick="selectServer('streamlare')" class="server-btn inactive" data-server="streamlare"> <i class="fas fa-play-circle mr-1"></i> Streamlare </button> <button onclick="selectServer('streamtape')" class="server-btn inactive" data-server="streamtape"> <i class="fas fa-tape mr-1"></i> Streamtape </button> <button onclick="selectServer('younetu')" class="server-btn inactive" data-server="younetu"> <i class="fas fa-film mr-1"></i> Younetu </button> <button onclick="selectServer('uptostream')" class="server-btn inactive" data-server="uptostream"> <i class="fas fa-cloud mr-1"></i> Uptostream </button> <button onclick="selectServer('vidsrc')" class="server-btn inactive" data-server="vidsrc"> <i class="fas fa-server mr-1"></i> VidSrc </button> </div> </div> <div class="mt-4"> <button type="button" onclick="closeModal()" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-primary text-base font-medium text-white hover:bg-secondary focus:outline-none sm:ml-3 sm:w-auto sm:text-sm"> Fermer </button> <button id="watch-now-btn" onclick="startStreaming()" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 focus:outline-none sm:ml-3 sm:w-auto sm:text-sm"> <i class="fas fa-play mr-2"></i> Lecture auto </button> </div> </div> </div> </div> </div> </div> </div> <!-- Streaming Window (hidden by default) --> <div id="streaming-window" class="streaming-window hidden"> <div class="streaming-header"> <h3 id="streaming-title" class="text-xl font-bold text-white"></h3> <button onclick="closeStreamingWindow()" class="text-gray-400 hover:text-white"> <i class="fas fa-times text-xl"></i> </button> </div> <div class="streaming-content"> <div id="streaming-player-container" class="w-full h-full" style="max-width: 1200px;"> <!-- Contenu du lecteur sera chargé ici --> <div id="stream-loading" class="stream-loading w-full h-full"> <div class="stream-loading-spinner"></div> <p class="text-gray-300">Chargement du flux vidéo...</p> </div> </div> </div> <div class="streaming-controls"> <div class="flex space-x-2"> <button onclick="changeQuality('720p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">720p</button> <button onclick="changeQuality('1080p')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">1080p</button> <button onclick="changeQuality('4k')" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm">4K</button> </div> <div> <button onclick="toggleFullscreen()" class="stream-btn px-3 py-1 bg-gray-700 hover:bg-gray-600 text-white rounded-full text-sm"> <i class="fas fa-expand mr-1"></i> Plein écran </button> </div> </div> </div> <script> // Configuration const API_KEY = 'c45a857c193f6302f2b5061c3b85e743'; // Clé API TMDB valide const BASE_URL = 'https://api.themoviedb.org/3'; // Serveurs de streaming avec URLs de base fonctionnelles const STREAMING_SERVERS = { hdvip: { name: 'Lecteur HD VIP', url: 'https://database.gdriveplayer.us/player.php?tmdb=', autoPlay: true, requiresTMDB: true, requiresIMDB: false }, streamlare: { name: 'Streamlare', url: 'https://streamlare.com/e/', autoPlay: true, requiresTMDB: false, requiresIMDB: true }, streamtape: { name: 'Streamtape', url: 'https://streamtape.com/e/', autoPlay: true, requiresTMDB: false, requiresIMDB: true }, younetu: { name: 'Younetu', url: 'https://younetu.com/embed/', autoPlay: true, requiresTMDB: false, requiresIMDB: true }, uptostream: { name: 'Uptostream', url: 'https://uptostream.com/iframe/', autoPlay: true, requiresTMDB: false, requiresIMDB: true }, vidsrc: { name: 'VidSrc', url: 'https://vidsrc.to/embed/movie/', autoPlay: true, requiresTMDB: true, requiresIMDB: false } }; let currentPage = 1; let currentFilter = 'popular'; let currentGenre = null; let currentSearch = ''; let totalPages = 1; let isLoading = false; let currentMovieId = null; let currentIMDBId = null; let selectedServer = 'hdvip'; // Fonction utilitaire pour faire les requêtes API async function fetchAPI(endpoint, params = {}) { const url = new URL(`${BASE_URL}${endpoint}`); // Ajouter les paramètres par défaut const defaultParams = { language: 'fr-FR', page: currentPage, api_key: API_KEY }; // Fusionner les paramètres const queryParams = {...defaultParams, ...params}; // Ajouter les paramètres à l'URL Object.keys(queryParams).forEach(key => { if (queryParams[key] !== undefined && queryParams[key] !== null) { url.searchParams.append(key, queryParams[key]); } }); try { const response = await fetch(url); if (!response.ok) { throw new Error(`Erreur HTTP: ${response.status}`); } return await response.json(); } catch (error) { console.error('Erreur API:', error); throw error; } } // Charger les films au démarrage document.addEventListener('DOMContentLoaded', function() { loadMovies(); // Écouter la touche Entrée dans la recherche document.getElementById('search-input').addEventListener('keypress', function(e) { if (e.key === 'Enter') { searchMovies(); } }); }); // Charger les films async function loadMovies() { if (isLoading) return; isLoading = true; showLoadingState(); try { let data; if (currentSearch) { data = await fetchAPI('/search/movie', { query: currentSearch, include_adult: false, page: currentPage }); } else if (currentGenre) { data = await fetchAPI('/discover/movie', { include_adult: false, include_video: false, sort_by: 'popularity.desc', with_genres: currentGenre, page: currentPage }); } else { data = await fetchAPI(`/movie/${currentFilter}`, { page: currentPage }); } totalPages = data.total_pages || 1; if (currentPage === 1) { document.getElementById('movies-container').innerHTML = ''; } if (data.results && data.results.length > 0) { displayMovies(data.results); updateLoadMoreButton(); } else { showNoResults(); } } catch (error) { console.error('Error fetching movies:', error); showErrorState(error.message); } finally { isLoading = false; } } // Afficher l'état de chargement function showLoadingState() { const container = document.getElementById('movies-container'); container.innerHTML = ` <div class="flex justify-center items-center py-12 col-span-full"> <div class="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary loading-spinner"></div> </div> `; } // Afficher les films avec boutons de streaming function displayMovies(movies) { const container = document.getElementById('movies-container'); movies.forEach(movie => { const movieCard = document.createElement('div'); movieCard.className = 'movie-card bg-gray-800 rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300'; // Utiliser l'image originale en haute qualité si disponible const posterPath = movie.poster_path ? `https://image.tmdb.org/t/p/w500${movie.poster_path}` : 'https://via.placeholder.com/500x750?text=Affiche+non+disponible'; movieCard.innerHTML = ` <div> <div class="movie-poster w-full rounded-t-lg overflow-hidden ${!movie.poster_path ? 'placeholder-poster' : ''}"> <img src="${posterPath}" alt="${movie.title || 'Titre inconnu'}" class="w-full h-full object-cover" onerror="this.src='https://via.placeholder.com/500x750?text=Image+non+chargée'; this.classList.add('placeholder-poster')"> </div> <div class="p-4"> <h3 class="text-lg font-semibold text-white truncate">${movie.title || 'Titre inconnu'}</h3> <div class="flex items-center mt-2"> <span class="text-yellow-400 text-sm"> <i class="fas fa-star"></i> ${movie.vote_average ? movie.vote_average.toFixed(1) : 'N/A'} </span> <span class="text-gray-400 text-sm ml-auto">${movie.release_date ? movie.release_date.substring(0, 4) : 'N/A'}</span> </div> <div class="mt-3"> <button onclick="startAutoStreaming(${movie.id}, '${movie.title || 'Film'}')" class="w-full stream-btn px-3 py-2 bg-green-600 hover:bg-green-700 text-white rounded text-sm"> <i class="fas fa-play-circle mr-1"></i> Lecture auto </button> <button onclick="showMovieDetails(${movie.id})" class="w-full mt-2 px-3 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded text-sm"> <i class="fas fa-info-circle mr-1"></i> Détails </button> </div> </div> </div> `; container.appendChild(movieCard); }); } // Afficher un message d'erreur function showErrorState(errorMessage) { const container = document.getElementById('movies-container'); container.innerHTML = ` <div class="col-span-full py-6 px-4 error-message rounded-lg"> <div class="flex items-center"> <i class="fas fa-exclamation-triangle text-red-500 text-xl mr-3"></i> <div> <h3 class="text-lg font-medium text-white">Erreur lors du chargement des films</h3> <p class="text-gray-300 mt-1">${errorMessage || 'Veuillez réessayer plus tard'}</p> <button onclick="retryLoading()" class="mt-3 px-4 py-2 bg-primary text-white rounded-full hover:bg-secondary transition text-sm"> <i class="fas fa-sync-alt mr-2"></i> Réessayer </button> </div> </div> </div> `; document.getElementById('load-more-container').classList.add('hidden'); } // Afficher un message quand aucun résultat n'est trouvé function showNoResults() { const container = document.getElementById('movies-container'); container.innerHTML = ` <div class="col-span-full text-center py-12"> <i class="fas fa-film text-4xl text-gray-500 mb-4"></i> <h3 class="text-xl text-white">Aucun film trouvé</h3> <p class="text-gray-400 mt-2">Essayez avec d'autres critères de recherche</p> </div> `; document.getElementById('load-more-container').classList.add('hidden'); } // Réessayer le chargement function retryLoading() { currentPage = 1; loadMovies(); } // Mettre à jour le bouton "Voir plus" function updateLoadMoreButton() { const loadMoreContainer = document.getElementById('load-more-container'); if (currentPage >= totalPages) { loadMoreContainer.innerHTML = ` <p class="text-gray-400">Vous avez atteint la fin des résultats</p> `; } else { loadMoreContainer.classList.remove('hidden'); } } // Filtrer les films function filterMovies(filter) { currentFilter = filter; currentGenre = null; currentSearch = ''; currentPage = 1; document.getElementById('search-input').value = ''; loadMovies(); // Mettre à jour les boutons actifs document.querySelectorAll('button').forEach(btn => { if (btn.textContent.toLowerCase().includes(filter.replace('_', ' '))) { btn.classList.remove('bg-gray-700'); btn.classList.add('bg-primary'); } else { btn.classList.remove('bg-primary'); btn.classList.add('bg-gray-700'); } }); } // Filtrer par genre function filterByGenre(genreId) { currentGenre = genreId; currentSearch = ''; currentPage = 1; document.getElementById('search-input').value = ''; loadMovies(); // Mettre à jour les boutons actifs document.querySelectorAll('.genre-btn').forEach(btn => { btn.classList.remove('bg-primary'); if (btn.onclick.toString().includes(genreId.toString())) { btn.classList.add('bg-primary'); } }); } // Rechercher des films function searchMovies() { const query = document.getElementById('search-input').value.trim(); if (query) { currentSearch = query; currentGenre = null; currentPage = 1; loadMovies(); } } // Charger plus de films function loadMoreMovies() { if (currentPage < totalPages) { currentPage++; loadMovies(); } } // Afficher les détails du film async function showMovieDetails(movieId) { try { const movie = await fetchAPI(`/movie/${movieId}`); currentMovieId = movieId; // Récupérer l'ID IMDB si disponible if (movie.imdb_id) { currentIMDBId = movie.imdb_id; } else { // Si l'ID IMDB n'est pas disponible, essayer de le récupérer via l'API const externalIds = await fetchAPI(`/movie/${movieId}/external_ids`); currentIMDBId = externalIds.imdb_id || null; } // Remplir la modal const modalPoster = document.querySelector('#modal-poster img'); modalPoster.src = movie.poster_path ? `https://image.tmdb.org/t/p/w500${movie.poster_path}` : 'https://via.placeholder.com/500x750?text=Affiche+non+disponible'; modalPoster.onerror = function() { this.src = 'https://via.placeholder.com/500x750?text=Image+non+chargée'; }; document.getElementById('modal-title').textContent = movie.title || 'Titre inconnu'; document.getElementById('modal-rating').textContent = `${movie.vote_average ? movie.vote_average.toFixed(1) : 'N/A'}/10`; document.getElementById('modal-year').textContent = movie.release_date ? movie.release_date.substring(0, 4) : 'N/A'; document.getElementById('modal-runtime').textContent = movie.runtime ? `${movie.runtime} min` : ''; document.getElementById('modal-overview').textContent = movie.overview || 'Aucun synopsis disponible.'; // Afficher les genres const genresContainer = document.getElementById('modal-genres'); genresContainer.innerHTML = ''; if (movie.genres && movie.genres.length > 0) { movie.genres.forEach(genre => { const genreBadge = document.createElement('span'); genreBadge.className = 'bg-gray-700 text-white text-xs px-2 py-1 rounded'; genreBadge.textContent = genre.name; genresContainer.appendChild(genreBadge); }); } else { genresContainer.innerHTML = '<span class="text-gray-400 text-sm">Aucun genre spécifié</span>'; } // Afficher la modal document.getElementById('movie-modal').classList.remove('hidden'); } catch (error) { console.error('Error fetching movie details:', error); alert('Erreur lors du chargement des détails du film: ' + (error.message || 'Veuillez réessayer')); } } // Fermer la modal de détails function closeModal() { document.getElementById('movie-modal').classList.add('hidden'); } // Sélectionner un serveur de streaming function selectServer(serverId) { selectedServer = serverId; // Mettre à jour l'état des boutons document.querySelectorAll('.server-btn').forEach(btn => { if (btn.dataset.server === serverId) { btn.classList.remove('inactive'); btn.classList.add('active'); } else { btn.classList.remove('active'); btn.classList.add('inactive'); } }); } // Démarrer le streaming depuis la modal function startStreaming() { if (currentMovieId) { const movieTitle = document.getElementById('modal-title').textContent; startAutoStreaming(currentMovieId, movieTitle); closeModal(); } } // Démarrer le streaming automatique dans une nouvelle fenêtre async function startAutoStreaming(movieId, movieTitle) { currentMovieId = movieId; // Afficher la fenêtre de streaming const streamingWindow = document.getElementById('streaming-window'); document.getElementById('streaming-title').textContent = movieTitle; // Afficher l'état de chargement const playerContainer = document.getElementById('streaming-player-container'); playerContainer.innerHTML = ` <div id="stream-loading" class="stream-loading w-full h-full"> <div class="stream-loading-spinner"></div> <p class="text-gray-300">Chargement du flux vidéo...</p> </div> `; // Afficher la fenêtre de streaming streamingWindow.classList.remove('hidden'); // Récupérer les informations du film pour l'ID IMDB si nécessaire let imdbId = currentIMDBId; if (!imdbId && STREAMING_SERVERS[selectedServer].requiresIMDB) { try { const externalIds = await fetchAPI(`/movie/${movieId}/external_ids`); imdbId = externalIds.imdb_id; if (!imdbId) { throw new Error("ID IMDB non disponible"); } } catch (error) { console.error("Erreur lors de la récupération de l'ID IMDB:", error); playerContainer.innerHTML = ` <div class="flex flex-col items-center justify-center h-full text-red-400"> <i class="fas fa-exclamation-triangle text-4xl mb-4"></i> <p class="text-lg">Impossible de trouver l'ID IMDB pour ce film</p> <p class="text-sm text-gray-400 mt-2">Essayez avec un autre serveur</p> </div> `; return; } } // Construire l'URL de streaming en fonction du serveur sélectionné let streamingUrl; const serverConfig = STREAMING_SERVERS[selectedServer]; if (serverConfig.requiresTMDB) { streamingUrl = serverConfig.url + movieId; } else if (serverConfig.requiresIMDB && imdbId) { streamingUrl = serverConfig.url + imdbId; } else { // Si aucun ID n'est disponible, utiliser TMDB par défaut streamingUrl = serverConfig.url + movieId; } // Ajouter le paramètre de lecture automatique si pris en charge if (serverConfig.autoPlay) { streamingUrl += '/auto'; } // Créer l'iframe pour le lecteur vidéo const iframe = document.createElement('iframe'); iframe.id = 'streaming-player'; iframe.src = streamingUrl; iframe.setAttribute('allowfullscreen', ''); iframe.setAttribute('scrolling', 'no'); iframe.setAttribute('frameborder', '0'); iframe.setAttribute('marginwidth', '0'); iframe.setAttribute('marginheight', '0'); iframe.style.width = '100%'; iframe.style.height = '100%'; iframe.style.border = 'none'; // Gestion des erreurs de chargement iframe.onerror = function() { playerContainer.innerHTML = ` <div class="flex flex-col items-center justify-center h-full text-red-400"> <i class="fas fa-exclamation-triangle text-4xl mb-4"></i> <p class="text-lg">Erreur lors du chargement du flux vidéo</p> <p class="text-sm text-gray-400 mt-2">Le serveur peut être temporairement indisponible</p> <button onclick="tryAlternativeServer()" class="mt-4 px-4 py-2 bg-primary text-white rounded hover:bg-secondary transition"> <i class="fas fa-sync-alt mr-2"></i> Essayer un autre serveur </button> </div> `; }; // Remplacer le chargement par le lecteur playerContainer.innerHTML = ''; playerContainer.appendChild(iframe); // Mettre le focus sur la fenêtre de streaming streamingWindow.focus(); // Tentative de lecture automatique (peut être bloquée par le navigateur) setTimeout(() => { try { iframe.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*'); } catch (e) { console.log("Auto-play blocked by browser"); } }, 2000); } // Essayer un autre serveur en cas d'erreur function tryAlternativeServer() { const servers = Object.keys(STREAMING_SERVERS); const currentIndex = servers.indexOf(selectedServer); const nextIndex = (currentIndex + 1) % servers.length; selectedServer = servers[nextIndex]; startAutoStreaming(currentMovieId, document.getElementById('streaming-title').textContent); } // Fermer la fenêtre de streaming function closeStreamingWindow() { const playerContainer = document.getElementById('streaming-player-container'); playerContainer.innerHTML = ''; document.getElementById('streaming-window').classList.add('hidden'); } // Changer la qualité de streaming (simulé) function changeQuality(quality) { alert(`Qualité changée en ${quality}. Note: Ceci est une démonstration.`); // En réalité, vous devriez mettre à jour la source du lecteur vidéo } // Basculer en plein écran function toggleFullscreen() { const playerContainer = document.getElementById('streaming-player-container'); if (playerContainer.requestFullscreen) { playerContainer.requestFullscreen(); } else if (playerContainer.webkitRequestFullscreen) { playerContainer.webkitRequestFullscreen(); } else if (playerContainer.msRequestFullscreen) { playerContainer.msRequestFullscreen(); } } </script> <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=docto41/cinestream" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html> ? EN MODE FUTURISTE
|
2 |
+
GO Lien 1 :netuAdd: 9-04-2025, 13:01HDTV Lien 2 :doodstreamAdd: 9-04-2025, 13:01HDTV Lien 3 :uqloadAdd: 9-04-2025, 13:01HDTV Lien 4 :uptostreamAdd: 9-04-2025, 13:01HDTV Lien 5 :vidozaAdd: 9-04-2025, 13:01HDTV Lien 6 :upvidAdd: 9-04-2025, 13:01HDTV Lien 7 :netuAdd: 9-04-2025, 13:01HDTV Lien 8 :doodstreamAdd: 9-04-2025, 13:01HDTV Lien 9 :uqloadAdd: 9-04-2025, 13:01HDTV Lien 10 :uptostreamAdd: 9-04-2025, 13:01HDTV Lien 11 :vidozaAdd: 9-04-2025, 13:01HDTV Lien 12 :upvid
|
3 |
+
GO Lien 1 :netuAdd: 9-04-2025, 13:01HDTV Lien 2 :doodstreamAdd: 9-04-2025, 13:01HDTV Lien 3 :uqloadAdd: 9-04-2025, 13:01HDTV Lien 4 :uptostreamAdd: 9-04-2025, 13:01HDTV Lien 5 :vidozaAdd: 9-04-2025, 13:01HDTV Lien 6 :upvidAdd: 9-04-2025, 13:01HDTV Lien 7 :netuAdd: 9-04-2025, 13:01HDTV Lien 8 :doodstreamAdd: 9-04-2025, 13:01HDTV Lien 9 :uqloadAdd: 9-04-2025, 13:01HDTV Lien 10 :uptostreamAdd: 9-04-2025, 13:01HDTV Lien 11 :vidozaAdd: 9-04-2025, 13:01HDTV Lien 12 :upvid
|
4 |
+
je veux pas des site d'exemple je veux un vrais site avec plus de 975623123 films version Français en auto Play robotisé
|
5 |
+
je veux les plus puissant serveur et lecteur de film afin de piloté en systeme automatique les films a regarder , importer les films en autopilote
|
6 |
+
maintenant activer toutes les films autoplay :: voici les cléé api tmdb ::: Jeton d'accès en lecture à l'API eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJmYjQzN2IxMDcyN2E1YTRlYjhkOTEzNGUyOWM4MmFlMCIsIm5iZiI6MTY4MDYzNzkxMC44NjUsInN1YiI6IjY0MmM3ZmQ2OGI5NTllMDBmNDRkNzNhMCIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.Nhl261Ha3z0Ujg5vM1PpFoZBiTGjlXQ1g9VFPh6dVvs Clé d'API fb437b10727a5a4eb8d9134e29c82ae0
|