PokeVideoPlayer v23.9-app.js-aug2025_ 0143ab93_videojs8_1563605_YT_2d24ba15 licensed under gpl3-or-later
<%
let itag = null; // Default to null
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '136' || format.itag == '298') {
itag = '140'; // Set itag to '140' if either '136' or '298' is found
}
});
%>
<% if (itag && qua !== "medium") { %>
<% } else { %>
<% } %>
<% if (!a) { %>
<% } %>
<%
// Check if ultrahigh sources (2K) exist
let uhdAvailable = false;
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '400' || format.itag == '271') {
uhdAvailable = true;
}
});
// Check if 4K sources exist
let fourKAvailable = false;
VideoData.adaptiveFormats.forEach(format => {
if (format.itag == '313' || format.itag == '401') {
fourKAvailable = true;
}
});
%>
<% if (!qua) { %>
High Definition Standard Definition
<% if (uhdAvailable) { %>
2K Definition
<% } %>
<% if (fourKAvailable) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "medium") { %>
High Definition Standard Definition
<% if (uhdAvailable) { %>
2K Definition
<% } %>
<% if (fourKAvailable) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "ultrahigh" && uhdAvailable) { %>
High Definition Standard Definition 2K Definition
<% if (fourKAvailable) { %>
4K Definition
<% } %>
<% } %>
<% if (qua === "4k" && fourKAvailable) { %>
High Definition Standard Definition
<% if (uhdAvailable) { %>
2K Definition
<% } %>
4K Definition
<% } %>
<%
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 : <%= u.replace("https://","") %> - refresh the page to change the proxy location
<% } %>
<% if (!isvidious) { %>
Proxy : tube-proxy.poketube.fun - refresh the page to change the proxy location
<% } %>
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
<% if (universe) { %>
<% } %>
<% if (!universe) { %>
<% } %>
<% if (VideoData.author == "7clouds") { %>
<% if (VideoData.author !== "7clouds") { %>
<% if (VideoData?.title !== VideoData.title) { %>
title="Non-Translated title : <%=VideoData.title%>"
<% } %>
> <%-VideoData.title.replace(/\/channel\//g, "/channel?id=").replace(/https:\/\/youtube.com/g, ""); %>
<%= likePercentage %>% of the users lieked the video!! <%= dislikePercentage %>% of the users dislieked the video!!
User score: <%= userScore %>- <%= userScoreLabel %>
<%- 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) { %> <% } %>