Community Upcoming Streams

Live Streams

Latest Videos

${obj['last_video_title']}

Video Description

${obj["description"]}

`; }else { var elem = document.querySelector('#youtube_list--latest'); elem.innerHTML += `

${obj['channel_title']}

Support The Channel

Last Stream

${obj['time']}

${obj['last_video_title']}

Video Description

${obj["description"]}

`; } } function unpack_data(data) { arr = [] for (i in data) { d = {}; d["channel_id"] = "https://www.youtube.com/channel/" + data[i]["req_channel_id"]; d["channel_title"] = data[i]["channel_title"]; d["last_video_title"] = data[i]["Latest_VideoDetail"]["Title"]; d["time"] = data[i]["Latest_VideoDetail"]["duration"]; d["img_last"] = data[i]["Latest_VideoDetail"]["thumbnails"]["high"]["url"]; d["description"] = data[i]["Latest_VideoDetail"]["description"]; d["videourl"] = "https://www.youtube.com/watch?v=" + data[i]["Latest_VideoDetail"]["videoId"]; d["is_live"] = data[i]["channel_Live"]; d["channel_thumbs"] = data[i]["channel_thumbs"][0]["url"]; if (check_title(d["last_video_title"])) { arr.push(d); } } for (c in arr) { add_channel(arr[c]) } } (function () { if (window.XMLHttpRequest) XMLHttp = new XMLHttpRequest(); else XMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); XMLHttp.open("GET", 'https://youtube.xosoft.com.pk/', true); XMLHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); XMLHttp.onreadystatechange = function () { // Call a function when the state changes. if (this.readyState === XMLHttpRequest.DONE && this.status === 200) { // Request finished. Do processing here. var data = JSON.parse(this.responseText) // console.log(data[0]) unpack_data(data); //arr } } XMLHttp.send(); })();