Spaces:
Running
Running
hola, necesito una aplicacion que lea las siguientes listas de canales y me permita, reproducir a traves de VLC , guardar en formato m3u, buscar canales, filtrar, ver las categorias, cargar listas m3u, etc, Las listas de ejemplo son http://sp.dnsoso.us:80/get.php?username=69ff5ab4b6&password=443180099f81&type=m3u_plus&output=ts
07d33f9 verified Download index.html from ravamarcos/streamcatcher-plus: direct link, hf CLI and curl.
- Browser
- Download file 20.6 kB
-
https://huggingface.co/spaces/ravamarcos/streamcatcher-plus/resolve/main/index.html
- Command line
-
hf download hf://spaces/ravamarcos/streamcatcher-plus/index.html
-
curl -L -o index.html https://huggingface.co/spaces/ravamarcos/streamcatcher-plus/resolve/main/index.html
20.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>StreamCatcher Plus+ - IPTV Manager</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script> | |
| <style> | |
| .custom-scrollbar::-webkit-scrollbar { | |
| width: 6px; | |
| height: 6px; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| border-radius: 10px; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-thumb { | |
| background: #888; | |
| border-radius: 10px; | |
| } | |
| .custom-scrollbar::-webkit-scrollbar-thumb:hover { | |
| background: #555; | |
| } | |
| .channel-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-white" id="vanta-bg"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <!-- Header --> | |
| <header class="flex flex-col md:flex-row justify-between items-center mb-10"> | |
| <div class="flex items-center mb-4 md:mb-0"> | |
| <i data-feather="tv" class="w-12 h-12 text-purple-500 mr-3"></i> | |
| <h1 class="text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-pink-600"> | |
| StreamCatcher Plus+ | |
| </h1> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <button onclick="openModal('upload-modal')" class="flex items-center bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg transition"> | |
| <i data-feather="upload" class="mr-2"></i> Load M3U | |
| </button> | |
| <button onclick="openModal('preset-modal')" class="flex items-center bg-pink-600 hover:bg-pink-700 px-4 py-2 rounded-lg transition"> | |
| <i data-feather="list" class="mr-2"></i> Preset Lists | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main> | |
| <!-- Search and Filters --> | |
| <div class="bg-gray-800 rounded-xl p-4 mb-6"> | |
| <div class="flex flex-col md:flex-row md:space-x-4"> | |
| <div class="w-full md:w-2/3 mb-4 md:mb-0"> | |
| <div class="relative"> | |
| <input type="text" id="search-input" placeholder="Search channels..." class="w-full bg-gray-700 rounded-lg py-3 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-purple-500"> | |
| <i data-feather="search" class="absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="w-full md:w-1/3 flex space-x-2"> | |
| <select id="category-filter" class="w-full bg-gray-700 rounded-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-purple-500"> | |
| <option value="">All Categories</option> | |
| <option value="Movies">Movies</option> | |
| <option value="Sports">Sports</option> | |
| <option value="News">News</option> | |
| <option value="Entertainment">Entertainment</option> | |
| <option value="Kids">Kids</option> | |
| </select> | |
| <button onclick="filterChannels()" class="bg-purple-600 hover:bg-purple-700 px-4 py-3 rounded-lg transition min-w-max"> | |
| <i data-feather="filter"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Channels Grid --> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6" id="channels-container"> | |
| <!-- Channels will be loaded here --> | |
| <div class="text-center py-10"> | |
| <i data-feather="loader" class="w-12 h-12 mx-auto animate-spin text-purple-500"></i> | |
| <p class="mt-4">Loading channels...</p> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Player Modal --> | |
| <div id="player-modal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden p-4"> | |
| <div class="bg-gray-800 rounded-xl w-full max-w-4xl max-h-[90vh] overflow-hidden"> | |
| <div class="flex justify-between items-center bg-gray-900 p-4"> | |
| <h3 id="player-title" class="text-xl font-bold">Channel Name</h3> | |
| <button onclick="closeModal('player-modal')" class="text-gray-400 hover:text-white"> | |
| <i data-feather="x"></i> | |
| </button> | |
| </div> | |
| <div class="aspect-video bg-black flex items-center justify-center"> | |
| <div id="player-placeholder" class="text-center p-8"> | |
| <i data-feather="play-circle" class="w-16 h-16 mx-auto text-purple-500 mb-4"></i> | |
| <p>Stream will play here</p> | |
| <div class="mt-6 flex justify-center space-x-4"> | |
| <button onclick="playInVLC()" class="bg-orange-500 hover:bg-orange-600 px-4 py-2 rounded-lg flex items-center"> | |
| <i data-feather="external-link" class="mr-2"></i> Open in VLC | |
| </button> | |
| <button onclick="copyStreamURL()" class="bg-gray-600 hover:bg-gray-700 px-4 py-2 rounded-lg flex items-center"> | |
| <i data-feather="copy" class="mr-2"></i> Copy URL | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 bg-gray-900"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <span id="channel-category" class="bg-purple-600 text-xs px-2 py-1 rounded">Category</span> | |
| </div> | |
| <button onclick="addToFavorites()" id="favorite-btn" class="text-gray-400 hover:text-yellow-400"> | |
| <i data-feather="star"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upload M3U Modal --> | |
| <div id="upload-modal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden p-4"> | |
| <div class="bg-gray-800 rounded-xl w-full max-w-md"> | |
| <div class="flex justify-between items-center bg-gray-900 p-4"> | |
| <h3 class="text-xl font-bold">Load M3U Playlist</h3> | |
| <button onclick="closeModal('upload-modal')" class="text-gray-400 hover:text-white"> | |
| <i data-feather="x"></i> | |
| </button> | |
| </div> | |
| <div class="p-6"> | |
| <div class="mb-4"> | |
| <label class="block text-gray-300 mb-2">M3U URL</label> | |
| <input type="text" id="m3u-url" placeholder="https://example.com/playlist.m3u" class="w-full bg-gray-700 rounded-lg py-2 px-4 focus:outline-none focus:ring-2 focus:ring-purple-500"> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-300 mb-2">Or upload file</label> | |
| <div class="border-2 border-dashed border-gray-600 rounded-lg p-8 text-center"> | |
| <i data-feather="upload-cloud" class="w-12 h-12 mx-auto text-purple-500 mb-2"></i> | |
| <p class="text-gray-400 mb-2">Drag & drop your M3U file here</p> | |
| <p class="text-sm text-gray-500 mb-4">or</p> | |
| <input type="file" id="m3u-file" accept=".m3u,.m3u8" class="hidden"> | |
| <label for="m3u-file" class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg inline-block cursor-pointer"> | |
| Select File | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button onclick="closeModal('upload-modal')" class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-lg"> | |
| Cancel | |
| </button> | |
| <button onclick="loadM3U()" class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg flex items-center"> | |
| <i data-feather="check" class="mr-2"></i> Load Playlist | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Preset Lists Modal --> | |
| <div id="preset-modal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden p-4"> | |
| <div class="bg-gray-800 rounded-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto custom-scrollbar"> | |
| <div class="flex justify-between items-center bg-gray-900 p-4 sticky top-0 z-10"> | |
| <h3 class="text-xl font-bold">Preset M3U Lists</h3> | |
| <button onclick="closeModal('preset-modal')" class="text-gray-400 hover:text-white"> | |
| <i data-feather="x"></i> | |
| </button> | |
| </div> | |
| <div class="p-6"> | |
| <div class="space-y-4"> | |
| <div class="bg-gray-700 rounded-lg p-4 hover:bg-gray-600 transition cursor-pointer" onclick="loadPreset('https://sp.dnsoso.us:80/get.php?username=69ff5ab4b6&password=443180099f81&type=m3u_plus&output=ts')"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h4 class="font-bold">DNSO Premium</h4> | |
| <p class="text-sm text-gray-400">High quality international channels</p> | |
| </div> | |
| <i data-feather="chevron-right" class="text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="bg-gray-700 rounded-lg p-4 hover:bg-gray-600 transition cursor-pointer" onclick="loadPreset('http://delta.proxy-pass.sbs:80/get.php?username=MarcoSP140S1&password=dteip6vno4&type=m3u_plus&output=mpegts')"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h4 class="font-bold">Delta Stream</h4> | |
| <p class="text-sm text-gray-400">Sports and movies focused</p> | |
| </div> | |
| <i data-feather="chevron-right" class="text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="bg-gray-700 rounded-lg p-4 hover:bg-gray-600 transition cursor-pointer" onclick="loadPreset('http://line.servergold.gold/get.php?username=pibita&password=4CF082&type=m3u_plus&output=mpegts')"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h4 class="font-bold">ServerGold</h4> | |
| <p class="text-sm text-gray-400">General entertainment collection</p> | |
| </div> | |
| <i data-feather="chevron-right" class="text-gray-400"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize Vanta.js background | |
| VANTA.NET({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x6d28d9, | |
| backgroundColor: 0x111827, | |
| points: 10.00, | |
| maxDistance: 20.00, | |
| spacing: 15.00 | |
| }); | |
| // Modal functions | |
| function openModal(id) { | |
| document.getElementById(id).classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| } | |
| function closeModal(id) { | |
| document.getElementById(id).classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| // Sample data (in a real app, this would come from parsing M3U) | |
| let channels = [ | |
| { id: 1, name: "HBO HD", category: "Movies", url: "http://example.com/hbo", logo: "http://static.photos/movies/200x200/1" }, | |
| { id: 2, name: "ESPN HD", category: "Sports", url: "http://example.com/espn", logo: "http://static.photos/sport/200x200/2" }, | |
| { id: 3, name: "CNN International", category: "News", url: "http://example.com/cnn", logo: "http://static.photos/news/200x200/3" }, | |
| { id: 4, name: "Cartoon Network", category: "Kids", url: "http://example.com/cartoon", logo: "http://static.photos/kids/200x200/4" }, | |
| { id: 5, name: "Discovery Channel", category: "Entertainment", url: "http://example.com/discovery", logo: "http://static.photos/education/200x200/5" }, | |
| { id: 6, name: "National Geographic", category: "Entertainment", url: "http://example.com/natgeo", logo: "http://static.photos/nature/200x200/6" }, | |
| { id: 7, name: "Fox Sports", category: "Sports", url: "http://example.com/foxsports", logo: "http://static.photos/sport/200x200/7" }, | |
| { id: 8, name: "BBC World", category: "News", url: "http://example.com/bbc", logo: "http://static.photos/news/200x200/8" } | |
| ]; | |
| // Currently selected channel | |
| let currentChannel = null; | |
| // Render channels | |
| function renderChannels(channelsToRender) { | |
| const container = document.getElementById('channels-container'); | |
| container.innerHTML = ''; | |
| if (channelsToRender.length === 0) { | |
| container.innerHTML = ` | |
| <div class="col-span-full text-center py-10"> | |
| <i data-feather="frown" class="w-12 h-12 mx-auto text-purple-500"></i> | |
| <p class="mt-4">No channels found matching your criteria</p> | |
| </div> | |
| `; | |
| feather.replace(); | |
| return; | |
| } | |
| channelsToRender.forEach(channel => { | |
| const channelCard = document.createElement('div'); | |
| channelCard.className = 'bg-gray-800 rounded-xl p-4 transition duration-300 channel-card hover:shadow-lg'; | |
| channelCard.innerHTML = ` | |
| <div class="aspect-square bg-gray-700 rounded-lg overflow-hidden mb-3"> | |
| <img src="${channel.logo}" alt="${channel.name}" class="w-full h-full object-contain" onerror="this.src='http://static.photos/black/200x200/99'"> | |
| </div> | |
| <h3 class="font-bold truncate">${channel.name}</h3> | |
| <div class="flex justify-between items-center mt-2"> | |
| <span class="text-xs bg-gray-700 px-2 py-1 rounded">${channel.category}</span> | |
| <button onclick="openChannel(${channel.id})" class="text-purple-400 hover:text-purple-300"> | |
| <i data-feather="play" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| `; | |
| container.appendChild(channelCard); | |
| }); | |
| feather.replace(); | |
| } | |
| // Filter channels | |
| function filterChannels() { | |
| const searchTerm = document.getElementById('search-input').value.toLowerCase(); | |
| const categoryFilter = document.getElementById('category-filter').value; | |
| let filtered = channels.filter(channel => { | |
| const matchesSearch = channel.name.toLowerCase().includes(searchTerm); | |
| const matchesCategory = categoryFilter ? channel.category === categoryFilter : true; | |
| return matchesSearch && matchesCategory; | |
| }); | |
| renderChannels(filtered); | |
| } | |
| // Open channel in modal | |
| function openChannel(id) { | |
| currentChannel = channels.find(channel => channel.id === id); | |
| document.getElementById('player-title').textContent = currentChannel.name; | |
| document.getElementById('channel-category').textContent = currentChannel.category; | |
| openModal('player-modal'); | |
| } | |
| // Play in VLC | |
| function playInVLC() { | |
| if (!currentChannel) return; | |
| // This would need a proper VLC protocol handler setup | |
| window.location.href = `vlc://${currentChannel.url}`; | |
| } | |
| // Copy stream URL | |
| function copyStreamURL() { | |
| if (!currentChannel) return; | |
| navigator.clipboard.writeText(currentChannel.url) | |
| .then(() => alert('Stream URL copied to clipboard!')) | |
| .catch(err => console.error('Could not copy text: ', err)); | |
| } | |
| // Add to favorites | |
| function addToFavorites() { | |
| if (!currentChannel) return; | |
| const btn = document.getElementById('favorite-btn'); | |
| btn.innerHTML = '<i data-feather="star" fill="currentColor"></i>'; | |
| btn.classList.remove('text-gray-400'); | |
| btn.classList.add('text-yellow-400'); | |
| feather.replace(); | |
| // In a real app, you would save this to localStorage | |
| } | |
| // Load preset M3U | |
| function loadPreset(url) { | |
| closeModal('preset-modal'); | |
| // In a real app, this would fetch and parse the M3U | |
| alert(`Loading playlist from: ${url}\nIn a real app, this would fetch and parse the M3U file.`); | |
| // For demo, we'll just show our sample channels | |
| renderChannels(channels); | |
| } | |
| // Load custom M3U | |
| function loadM3U() { | |
| const url = document.getElementById('m3u-url').value; | |
| const fileInput = document.getElementById('m3u-file'); | |
| if (url) { | |
| closeModal('upload-modal'); | |
| alert(`Loading M3U from URL: ${url}\nIn a real app, this would fetch and parse the M3U file.`); | |
| // For demo, we'll just show our sample channels | |
| renderChannels(channels); | |
| } else if (fileInput.files.length > 0) { | |
| const file = fileInput.files[0]; | |
| const reader = new FileReader(); | |
| reader.onload = function(e) { | |
| closeModal('upload-modal'); | |
| alert(`Parsing M3U file: ${file.name}\nIn a real app, this would parse the M3U content.`); | |
| // For demo, we'll just show our sample channels | |
| renderChannels(channels); | |
| }; | |
| reader.readAsText(file); | |
| } else { | |
| alert('Please enter a URL or select a file'); | |
| } | |
| } | |
| // Initialize | |
| document.addEventListener('DOMContentLoaded', () => { | |
| feather.replace(); | |
| renderChannels(channels); | |
| // Search on Enter key | |
| document.getElementById('search-input').addEventListener('keyup', (e) => { | |
| if (e.key === 'Enter') filterChannels(); | |
| }); | |
| // File input change handler | |
| document.getElementById('m3u-file').addEventListener('change', (e) => { | |
| const fileName = e.target.files[0]?.name || 'No file selected'; | |
| document.querySelector('#upload-modal [for="m3u-file"]').textContent = fileName; | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |