{"id":593,"date":"2026-01-17T22:24:08","date_gmt":"2026-01-17T22:24:08","guid":{"rendered":"https:\/\/docustvvod9112.live-website.com\/?page_id=593"},"modified":"2026-01-17T22:24:08","modified_gmt":"2026-01-17T22:24:08","slug":"uk","status":"publish","type":"page","link":"https:\/\/docustv-vod.docusflix.com\/?page_id=593","title":{"rendered":"ALGERIE"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Bouquet Alg\u00e9rien<\/title>\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/hls.js@latest\"><\/script>\n<style>\nbody { margin:0; font-family:Arial,sans-serif; background:#111; color:#fff; }\nh2 { margin:20px; font-size:1.5em; border-bottom:1px solid #444; padding-bottom:5px; }\n.channels-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; padding:12px; }\n.channel-card { background:#222; border-radius:8px; cursor:pointer; text-align:center; padding:10px; transition:transform 0.2s; }\n.channel-card:hover { transform:scale(1.05); }\n.channel-card img { width:100%; height:80px; object-fit:contain; background:#111; margin-bottom:8px; }\n.channel-card span { display:block; font-size:0.9em; }\n.player-container { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); display:none; justify-content:center; align-items:center; z-index:1000; }\n.player-container video { width:80%; max-height:80%; }\n.close-btn { position:absolute; top:20px; right:30px; color:#fff; font-size:28px; cursor:pointer; }\n<\/style>\n<\/head>\n<body>\n\n<div class=\"player-container\" id=\"playerBox\">\n  <span class=\"close-btn\" onclick=\"closePlayer()\">\u2716<\/span>\n  <video id=\"video\" controls autoplay><\/video>\n<\/div>\n\n<div id=\"bouquet\"><\/div>\n\n<script>\n\/\/ \u2014\u2014 Playlist M3U Alg\u00e9rienne\nconst playlistM3U = `\n#EXTM3U\n#EXTINF:-1 tvg-id=\"AmouYazidTV.dz@SD\" tvg-logo=\"https:\/\/i.imgur.com\/L8UPGPC.png\" group-title=\"Kids\",Amou Yazid TV (576p)\nhttp:\/\/mkstream.servehttp.com:1940\/AmouYazid\/ay1\/playlist.m3u8\n#EXTINF:-1 tvg-id=\"CNA.dz@SD\" tvg-logo=\"https:\/\/i.imgur.com\/Ki3ySUE.png\" group-title=\"Religious\",CNA (Cha\u00eene Nord Africaine) (360p)\nhttps:\/\/live.creacast.com\/cna\/smil:cna.smil\/playlist.m3u8\n#EXTINF:-1 tvg-id=\"TV2.dz@SD\" tvg-logo=\"https:\/\/i.imgur.com\/VEb631f.png\" group-title=\"General\",TV2 Canal Alg\u00e9rie (1080p)\nhttp:\/\/149.62.177.98:8000\/play\/a01s\/index.m3u8\n#EXTINF:-1 tvg-id=\"TV4.dz@SD\" tvg-logo=\"https:\/\/i.imgur.com\/BZvdjBN.png\" group-title=\"General\",TV4 Tamazight TV (576p)\nhttp:\/\/149.62.177.98:8000\/play\/a01t\/index.m3u8\n`;\n\nfunction parseM3U(text) {\n  const lines = text.split(\/\\r?\\n\/);\n  const items = [];\n  for (let i = 0; i < lines.length; i++) {\n    if (lines[i].startsWith(\"#EXTINF\")) {\n      const info = lines[i];\n      const url = lines[i+1] || \"\";\n      const name = info.split(\",\")[1] || \"Unknown\";\n      const logoMatch = info.match(\/tvg-logo=\"([^\"]+)\"\/);\n      const categoryMatch = info.match(\/group-title=\"([^\"]+)\"\/);\n      items.push({\n        name: name.trim(),\n        logo: logoMatch ? logoMatch[1] : \"\",\n        category: categoryMatch ? categoryMatch[1] : \"Autre\",\n        url: url.trim()\n      });\n    }\n  }\n  return items;\n}\n\nfunction buildHTML(channels) {\n  const bouquet = document.getElementById(\"bouquet\");\n  const byCategory = {};\n  channels.forEach(ch => {\n    if (!byCategory[ch.category]) byCategory[ch.category] = [];\n    byCategory[ch.category].push(ch);\n  });\n\n  for (const cat in byCategory) {\n    const h2 = document.createElement(\"h2\");\n    h2.textContent = cat;\n    bouquet.appendChild(h2);\n\n    const grid = document.createElement(\"div\");\n    grid.className = \"channels-grid\";\n    byCategory[cat].forEach(ch => {\n      const card = document.createElement(\"div\");\n      card.className = \"channel-card\";\n      card.innerHTML = `\n        <img decoding=\"async\" src=\"${ch.logo}\" alt=\"${ch.name}\">\n        <span>${ch.name}<\/span>\n      `;\n      card.onclick = () => playChannel(ch.url);\n      grid.appendChild(card);\n    });\n    bouquet.appendChild(grid);\n  }\n}\n\nfunction playChannel(url) {\n  const playerBox = document.getElementById(\"playerBox\");\n  const video = document.getElementById(\"video\");\n  playerBox.style.display = \"flex\";\n  if (Hls.isSupported()) {\n    const hls = new Hls();\n    hls.loadSource(url);\n    hls.attachMedia(video);\n  } else {\n    video.src = url;\n  }\n  video.play();\n}\n\nfunction closePlayer() {\n  const playerBox = document.getElementById(\"playerBox\");\n  const video = document.getElementById(\"video\");\n  video.pause();\n  video.src = \"\";\n  playerBox.style.display = \"none\";\n}\n\nconst channels = parseM3U(playlistM3U);\nbuildHTML(channels);\n\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Bouquet Alg\u00e9rien \u2716<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-593","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=\/wp\/v2\/pages\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=593"}],"version-history":[{"count":0,"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=\/wp\/v2\/pages\/593\/revisions"}],"wp:attachment":[{"href":"https:\/\/docustv-vod.docusflix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}