<%
let itag = null;
let hasHD = false, hasUHD = false, has4K = false;
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '136' || format.itag == '298') {
itag = '140';
hasHD = true;
}
if (format.itag == '400' || format.itag == '271') {
hasUHD = true;
}
if (format.itag == '313' || format.itag == '401') {
has4K = true;
}
});
%>
<% if (itag && qua !== "medium" && itag !== '18') { %>
<%
let qualityOptions = [];
if (hasHD) qualityOptions.push("hd");
if (hasUHD) qualityOptions.push("uhd");
if (has4K) qualityOptions.push("4k");
%>
<% if (qualityOptions.length === 0) { %>
Standard Definition
<% } else { %>
<% if (!qua) { %>
High Definition
Standard Definition
<% if (hasUHD) { %>
2K Definition
<% } %>
<% if (has4K) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "medium") { %>
High Definition
Standard Definition
<% if (hasUHD) { %>
2K Definition
<% } %>
<% if (has4K) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "ultrahigh" && hasUHD) { %>
High Definition
Standard Definition
2K Definition
<% if (has4K) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "4k" && has4K) { %>
High Definition
Standard Definition
<% if (hasUHD) { %>
2K Definition
<% } %>
4K Definition
<% } %>
<% } %>
<% if (Math.floor(Math.random() * 50) === 0) { %>
Stats For Puppies
<% } else { %>
Stats For Nerds
<% } %>
<%
function getAdaptiveFormat(itag) {
return VideoData.adaptiveFormats.find(f => f.itag == itag);
}
function getFormatStream(itag) {
return VideoData.formatStreams.find(f => f.itag == itag);
}
let statsForNerdsQuality = null;
if (!qua) {
let hdItag = '136';
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '298') {
hdItag = '298';
}
});
let f = getAdaptiveFormat(hdItag);
if (f) {
statsForNerdsQuality = {
itag: f.itag,
label: f.qualityLabel,
container: f.container || "mp4",
codecs: f.encoding,
audioSampleRate: f.audioSampleRate || "44100Hz",
bitrate: f.bitrate || null
};
}
}
if (qua === "medium") {
let f = getFormatStream(18);
if (f) {
statsForNerdsQuality = {
itag: f.itag,
label: f.qualityLabel,
container: f.container || "mp4",
codecs: f.encoding || (f.mimeType ? f.mimeType : "unknown"),
audioSampleRate: f.audioSampleRate || "44100Hz",
bitrate: f.bitrate || null
};
}
}
if (qua === "ultrahigh") {
let ultraItag = null;
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '400') {
ultraItag = '400';
} else if (format.itag == '271' && !ultraItag) {
ultraItag = '271';
}
});
let f = ultraItag ? getAdaptiveFormat(ultraItag) : null;
if (f) {
statsForNerdsQuality = {
itag: f.itag,
label: f.qualityLabel,
container: f.container || "mp4",
codecs: f.encoding || (f.mimeType ? f.mimeType : "unknown"),
audioSampleRate: f.audioSampleRate || "44100Hz",
bitrate: f.bitrate || null
};
}
}
if (qua === "4k") {
let fourKItag = null;
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '313') {
fourKItag = '313';
} else if (format.itag == '401' && !fourKItag) {
fourKItag = '401';
}
});
let f = fourKItag ? getAdaptiveFormat(fourKItag) : null;
if (f) {
statsForNerdsQuality = {
itag: f.itag,
label: f.qualityLabel,
container: f.container || "mp4",
codecs: f.encoding || (f.mimeType ? f.mimeType : "unknown"),
audioSampleRate: f.audioSampleRate || "44100Hz",
bitrate: f.bitrate || null
};
}
}
%>
Video id : <%=VideoData.videoId%>
ImmersiveAmbientModecolor: <% if (lightOrDark(color) == "light") { %><%=color%> (color 1)<% } %><% if (lightOrDark(color) == "dark") { %> <%=color2%> (color 2) <% } %>
Video Format :
<% if (statsForNerdsQuality) { %>
<%= statsForNerdsQuality.itag %> (<%= statsForNerdsQuality.label %>)
<%= statsForNerdsQuality.container %> | <%= statsForNerdsQuality.codecs %> | <%= statsForNerdsQuality.audioSampleRate %>
<% if (statsForNerdsQuality.bitrate) { %> | <%= statsForNerdsQuality.bitrate %> bps <% } %>
<% } %>
<% if (VideoData.genre === "Music") { %>
Audio Format: ALAC lossless (https://github.com/macosforge/alac)
<% } %>
<% if (VideoData.genre !== "Music") { %>
Audio Format: 140 ( High )
<% } %>
PokeEncryptID: <%=sha384(VideoData.videoId)%>
<% if (isvidious) { %>
Proxy/Companion URL : <%= u.replace("https://","") %>
<% } %>
<% if (!isvidious) { %>
Proxy : tube-proxy.poketube.fun
<% } %>
Date : <%- Date.now() %> - <%- useragent.os.replace("Linux", "GNU/Linux") %> on <%- useragent.browser %>
<% if (VideoData.authorId != "UCBQZwaNPFfJ1gZ1fLZpAEGw") { %>
<% if (isvidious) { %>
Mystery text?? : <%=btoa(VideoData.videoId + " i " + " lov " + " u " + u.replace("https://","") ) %>
<% } %>
<% if (!isvidious) { %>
Mystery text : <%=btoa(VideoData.videoId + " i " + " lov " + " u " + "tube-proxy.poketube.fun" ) %>
<% } %>
<% } %>
<% if (VideoData.authorId == "UCBQZwaNPFfJ1gZ1fLZpAEGw") { %>
Mystery text : <%=btoa(Date.now() + "dmaorg.info/found/15398642_14/clancy.html" + VideoData.videoId) %>
<% } %>
143 : true
<%- x.author%><% if (x.verified) { %><% } %>
<% } %><% if (x.authorIsChannelOwner) { %><%- x.publishedText %>
<%- x.author%><% if (x.verified) { %><% } %>
<%- x.publishedText %>
<% } %><%- x.contentHtml.replace(/\n/g, "
"); %>
<% if (x.likeCount === 0) { %>|<% } else { %> <%= convert(x.likeCount) %> |<% } %> <% if (x.replies?.replyCount != 0) { %> <%- x.replies?.replyCount || "0" %> <% } %> <% if(x.creatorHeart) { %> <% } %>