mogultv/get_stream_details-70a52c12.js

35 lines
903 B
JavaScript

function n() {
let n = function() {
var n, t;
const e = document.querySelector("ytd-page-manager");
return null === (t = null === (n = null == e ? void 0 : e.data) || void 0 === n ? void 0 : n.playerResponse) || void 0 === t ? void 0 : t.videoDetails
}();
return n || (n = function() {
const n = new URLSearchParams(window.location.hash.substring(1)).get("OpXmfbXQaCyUDUFX");
if (n) try {
return JSON.parse(n)
} catch (n) {
return
}
}(), n || void 0)
}
function t(t = !0) {
var e;
const i = n();
return null !== (e = null == i ? void 0 : i.isLive) && void 0 !== e ? e : t
}
function e(t = !0) {
const e = n();
if (e) {
return ["UCZaVG6KWBuquVXt63G6xopg", "UCrPseYLGpNygVi34QpGNqpA"].includes(e.channelId) && e.isLiveContent
}
return t
}
export {
e,
n,
t
};