// التعريف بالـ URLs
const API_TEAM_URL = 'https://ws.kora-api.top/uploads/team/';
const MAIN_URL = 'https://koora-live-tv.app/';
const ALT_URL = 'https://koora-live-tv.app/';
// تعريف قائمة الـ slugs (روابط مختصرة للمحتوى)
const SLUGS = JSON.parse('["koora-live","kora-live-1","kooralive-1","koora-1","kooora","koora-live-ar-1","live-koora","kora-1","koralive","koora-tv-1","kora-tv-1","livekoora","goalarab","livestreaming","yacinetv","kooora4live","results","yalla-shoot","yallalive","tv","kora-online","kora-star","as-goal","ostoura","leagues","fel3arda","bein-match","go4kora","kingfoot"]');
// تعريف بيانات الـ slug-items (المحتوى المتعلق بكل slug)
const SLUG_ITEMS = JSON.parse('[{"id":"186","title":"Koora Live - Best reddit football links","slug":"koora-live","matche_id":"0"},{"id":"187","title":"Kora Live - Best soccer streams","slug":"kora-live-1","matche_id":"0"},{"id":"188","title":"Kooralive - Watch live soccer streams and football matches","slug":"kooralive-1","matche_id":"0"},{"id":"189","title":"Koora - Enjoy live soccer streams on Koora","slug":"koora-1","matche_id":"0"},{"id":"190","title":"Kooora - Reddit football streams","slug":"kooora","matche_id":"0"}...]'); // باقي البيانات
// تعريف الـ DOMAIN_ID الذي يتم استخدامه في بعض الأوقات
const DOMAIN_ID = '2';
// الحصول على الوقت الحالي بالدقائق
let time = get_current_minute();
// الحصول على تاريخ اليوم بتنسيق YYYY-MM-DD
let todayDate = new Date().toISOString().slice(0, 10);
// بناء الرابط API للحصول على المباريات
const API_URL_MATCHES = "https://ws.kora-api.top/api/matches/" + todayDate + "/1?t=" + time;
// تحويل التاريخ إلى تنسيق ISO (YYYY-MM-DD)
let yourDate = new Date();
yourDate = yourDate.toISOString().split('T')[0];
// استخدام الرابط API للحصول على بيانات المباريات
fetch(API_URL_MATCHES)
.then(response => response.json())
.then(data => {
// التعامل مع البيانات المسترجعة (المباريات)
data.matches.forEach(match => {
const matchElement = document.createElement("div");
// عرض بيانات المباراة داخل div
matchElement.innerHTML = `
`;
// إضافة المباراة إلى الصفحة
document.body.appendChild(matchElement);
});
})
.catch(error => {
console.error("Error fetching matches:", error);
});
${match.home} vs ${match.away}
الوقت: ${match.date} ${match.time}
النتيجة: ${match.score}
الدوري: ${match.league}
القنوات: ${match.tv}