Update index.html
Browse files58 unmodified lines5960616263646543 unmodified lines1091101111121131141151161171181191203 unmodified lines12412512612712812913013113213313413513613713821 unmodified lines1601611621631641651664 unmodified lines1711721731741751761771781 unmodified line1801811821831841851864 unmodified lines1911921931941951961971 unmodified line1992002012022032042052 unmodified lines20820921021121221321458 unmodified lines<div class="header"><h2>📺 IPTV World</h2><p>قنوات عالمية — بث مباشر مع إعلانات تلقائية</p></div><div class="sources" id="sources">43 unmodified lines// رابط الـ VAST Tag الخاص بكconst VAST_URL = "https://unfolded-uncle.com/dgm-FfzOd.GrN/vhZKGIUr/qeHmE9DuhZ-UUl/kpPXTTc/1LNQDlcowINQTzMVtbNxz_U/0nNrzoAJ1nNwwd";function initFluidPlayer() {if (playerInstance) {playerInstance.destroy();}// تهيئة المشغل وإعداد إعلانات VAST بدون إمكانية التخطيplayerInstance = fluidPlayer('main-video', {layoutControls: {fillToContainer: true,3 unmodified linesvastOptions: {adList: [{roll: 'preRoll', // إعلان عند بدء الفيديو مباشرةvastTag: VAST_URL,allowSkip: false // إلغاء إمكانية تخطي الإعلان}]}});// ضبط مؤقت لتكرار الإعلان كل 3 دقائق (180,000 مللي ثانية)if (adInterval) clearInterval(adInterval);adInterval = setInterval(() => {if (playerInstance) {21 unmodified linesasync function loadM3U(url){const list=document.getElementById('channels-list');list.innerHTML='<div class="status">جاري تحميل القنوات...</div>';document.getElementById('count').textContent='تحميل...';allChannels=[];document.getElementById('category-select').innerHTML='<option value="all">كل الأقسام</option>';4 unmodified linesconst data=await response.text();parseM3U(data);}catch(e){list.innerHTML='<div class="status">تعذر تحميل القنوات.</div>';document.getElementById('count').textContent='خطأ في التحميل';}}1 unmodified lineconst lines=content.split(/\r?\n/);const result=[];let current=null;const cats=new Set();for(const raw of lines){const line=raw.trim();4 unmodified linesconst name=comma>=0 ? line.slice(comma+1).trim() : 'قناة';const group=(line.match(/group-title="([^"]*)"/i)||[])[1]||'عام';current={name,category:group};cats.add(group);}else if(current && !line.startsWith('#') && /^https?:\/\//i.test(line)){current.url=line;result.push(current);1 unmodified line}}allChannels=result;const select=document.getElementById('category-select');select.innerHTML='<option value="all">كل الأقسام</option>';[...cats].sort().forEach(cat=>{2 unmodified linesoption.textContent=cat;select.appendChild(option);});renderChannels(allChannels);}function applyFilters(){58 unmodified lines5960616263646543 unmodified lines1091101111121131141151161171181191201211221231241251261273 unmodified lines13113213313413513613713813914014114214314421 unmodified lines1661671681691701711724 unmodified lines1771781791801811821831841851861 unmodified line1881891901911921934 unmodified lines1981992002012022031 unmodified line2052062072082092102112122132142152162172182192202212 unmodified lines22422522622722822958 unmodified lines<div class="header"><h2>📺 IPTV World</h2><p>قنوات عالمية — بث مباشر مع إعلانات VAST</p></div><div class="sources" id="sources">43 unmodified lines// رابط الـ VAST Tag الخاص بكconst VAST_URL = "https://unfolded-uncle.com/dgm-FfzOd.GrN/vhZKGIUr/qeHmE9DuhZ-UUl/kpPXTTc/1LNQDlcowINQTzMVtbNxz_U/0nNrzoAJ1nNwwd";// قائمة قنوات احتياطية تضمن عمل التطبيق فوراً بدون توقفconst fallbackChannels = [{ name: "العربية الحدث (بث مباشر)", category: "أخبار", url: "https://live.alarabiya.net/alarabiya/aldashat.m3u8" },{ name: "الجزيرة الإخبارية", category: "أخبار", url: "https://live-hls-web-aje.getaj.net/AJE/03.m3u8" },{ name: "فرانس 24 عربي", category: "أخبار", url: "https://f24hls.live.cf.ww.aiv-cdn.net/hls/live/2016335/f24ar_hls/master.m3u8" },{ name: "سكاي نيوز عربية", category: "أخبار", url: "https://skynewsarabia.live.hls.adaptive.level3.net/skynewsarabia/index.m3u8" }];function initFluidPlayer() {if (playerInstance) {playerInstance.destroy();}playerInstance = fluidPlayer('main-video', {layoutControls: {fillToContainer: true,3 unmodified linesvastOptions: {adList: [{roll: 'preRoll',vastTag: VAST_URL,allowSkip: false}]}});if (adInterval) clearInterval(adInterval);adInterval = setInterval(() => {if (playerInstance) {21 unmodified linesasync function loadM3U(url){const list=document.getElementById('channels-list');list.innerHTML='<div class="status">جاري جلب القنوات...</div>';document.getElementById('count').textContent='تحميل...';allChannels=[];document.getElementById('category-select').innerHTML='<option value="all">كل الأقسام</option>';4 unmodified linesconst data=await response.text();parseM3U(data);}catch(e){// في حال فشل الجلب الخارجي، تظهر القنوات الاحتياطية فوراًallChannels = fallbackChannels;updateCategories(allChannels);renderChannels(allChannels);}}1 unmodified lineconst lines=content.split(/\r?\n/);const result=[];let current=null;for(const raw of lines){const line=raw.trim();4 unmodified linesconst name=comma>=0 ? line.slice(comma+1).trim() : 'قناة';const group=(line.match(/group-title="([^"]*)"/i)||[])[1]||'عام';current={name,category:group};}else if(current && !line.startsWith('#') && /^https?:\/\//i.test(line)){current.url=line;result.push(current);1 unmodified line}}if(result.length === 0){allChannels = fallbackChannels;} else {allChannels = result;}updateCategories(allChannels);renderChannels(allChannels);}function updateCategories(channels) {const cats = new Set(channels.map(c => c.category));const select=document.getElementById('category-select');select.innerHTML='<option value="all">كل الأقسام</option>';[...cats].sort().forEach(cat=>{2 unmodified linesoption.textContent=cat;select.appendChild(option);});}function applyFilters(){
index.html+27-12