<% try { %> <% if (!isMobile) { %> <% if(secure) { %><% } %><% if(!secure) { %><% } %> <% if (e === false) { %> <% } %> <% if (!e) { %> long video from <%=VideoData?.author%> On Poke! 👍 <%=convert(engagement?.likes)%> | 👎 <%=convert(engagement?.dislikes)%> | 📈 <%=convert(engagement.viewCount)%> Views 🗓️ <%= date.replace("Premiered", " ") %> 💬 <% if (!isNaN(inv.commentCount)) { %><%= inv.commentCount.toLocaleString() %> <% } else { %> 0 <% } %>" property=twitter:description> <% } %> <%= VideoData?.title %> | <%= /^[A-Z]/.test(VideoData.title) ? 'Watch' : 'watch' %> <% if (VideoData.title == "7clouds") { %> <% } %> <% if (VideoData.videoId == "QrGrOK8oZG8") { %> <% } %> <% if(IsOldWindows) { %> <% } %> <% if(dm) { %> <% } %>
<% 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 (!VideoData.recommendedVideos || VideoData.recommendedVideos.length === 0) { %> <% } %> <% } %> <% if (isMobile) { %> <% if (isMobile) { %> <% if (e === false) { %> <% } %> <% if (!e) { %> <% } %> <%=VideoData.title%> | PokeTube Mobile /https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet> <% if (Array.isArray( !inv.comments)) { %> <% } %>
<% if (VideoData?.title.includes("voice training")) { %> <% if (VideoData?.title.includes("voice tutorial")) { %> quick escape
<% } %> <% } %>
<%=VideoData.author.replace(" - Topic", "")%>
<%= VideoData.subCountText.replace("subscribers", "Subs") %> Subs
<%=convert(engagement.likes)%>
<%=convert(engagement.dislikes)%>
Search
<% if (Array.isArray( inv.comments)) { %>
<%- convert(inv.commentCount) %> Comments
<% }%>
Download
<% if (!video?.Channel.Name.endsWith(' - Topic')) { %> <% if (!VideoData.title.endsWith('Audio)')) { %> <% if (support != undefined) { %>
Support
<% }%> <% }%> <% }%>
My Account
Customize
Calendar
Translate
PokeMaps
Pokepad
Share
Share On <%= config.mastodon_client_server_name %>!
Redirect
Open On YouTube
<% if (twitter) { %> <% } %> <% if (discord) { %> <% } %> <% if (twitch) { %> <% } %> <% if (reddit) { %> <% } %> <% if (instagram) { %> <% } %> <% if (!twitter) { %> <% if (!discord) { %> <% if (!reddit) { %> <% if (!twitch) { %> <% if (!instagram) { %>
Nyo connections found ;_;
<% } %> <% } %> <% } %> <% } %> <% } %>



Description


<%=VideoData.title%>
<% if (VideoData.genre === "Music") { %>  Lossless Audio <% } %>

<%=convert(engagement.viewCount)%>

Views

<%=convert(engagement.likes)%>

Likes

<%=convert(engagement.dislikes)%>

Dislikes

<% const likes = parseInt(engagement.likes) || 0; const dislikes = parseInt(engagement.dislikes) || 0; const total = likes + dislikes; const likePercentage = total > 0 ? ((likes / total) * 100).toFixed(2) : 0; const dislikePercentage = total > 0 ? ((dislikes / total) * 100).toFixed(2) : 0; const getLikePercentageColor = (percentage) => { if (percentage >= 80) { return 'green'; } else if (percentage >= 50) { return 'orange'; } else { return 'red'; } }; const getDislikePercentageColor = (percentage) => { if (percentage >= 50) { return 'red'; } else if (percentage >= 20) { return 'orange'; } else { return 'green'; } }; const likeColor = getLikePercentageColor(likePercentage); const dislikeColor = getDislikePercentageColor(dislikePercentage); const userScore = (parseFloat(likePercentage) - parseFloat(dislikePercentage) / 2).toFixed(2); const getUserScoreLabel = (score) => { if (score >= 80) { return 'Overwhelmingly Positive'; } else if (score >= 60) { return 'Positive'; } else if (score >= 40) { return 'Mixed'; } else if (score >= 20) { return 'Negative'; } else { return 'Overwhelmingly Negative'; } }; const userScoreLabel = getUserScoreLabel(userScore); const userScoreColor = userScore >= 80 ? 'green' : userScore >= 50 ? 'orange' : 'red'; %>
<%-String(channelurlfixer(VideoData.descriptionHtml)).replace(/\n/g, "
").replace(/twitter\.com/g, "twitter.com").replace(/reddit\.com/g, "redlib.matthew.science") %>
Rating! :3

<%= likePercentage %>% of the users lieked the video!!
<%= dislikePercentage %>% of the users dislieked the video!!
User score: <%= userScore %>- <%= userScoreLabel %>

Connections
<% if (twitter) { %> <% } %> <% if (discord) { %> <% } %> <% if (twitch) { %> <% } %> <% if (reddit) { %> <% } %> <% if (instagram) { %> <% } %> <% if (!twitter) { %> <% if (!discord) { %> <% if (!reddit) { %> <% if (!twitch) { %> <% if (!instagram) { %>
Nyo connections found ;_;
<% } %> <% } %> <% } %> <% } %> <% } %>
<% if (Array.isArray(VideoData?.keywords)) { %>
Tags

<% VideoData.keywords.forEach(x => { %> <% }) %>
<% } %>
Stats for 🤓
Video id : <%=VideoData.videoId%>
ImmersiveAmbientModecolor: <% if (lightOrDark(color) == "light") { %><%=color%> (color 1)<% } %><% if (lightOrDark(color) == "dark") { %> <%=color2%> (color 2) <% } %>
Video Format :<% if (!qua) { %> 22 (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz <% } %> <% if (qua === "medium") { %> 18 (320p) openh264 (https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz <% } %> <% if (VideoData.genre === "Music") { %>
Audio Format: ALAC lossless (https://codeberg.org/Ashley/poke/src/branch/main/alac) Audio/ Flac
<% } %> <% if (VideoData.genre !== "Music") { %>
Audio Format: Opus - Normalized audio
<% } %> PokeTubeEncryptID: <%=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 (isvidious) { %> Mystery text : <%=btoa(VideoData.videoId + " i " + " lov " + " u " + "mobile "+ u.replace("https://","") ) %>
<% } %> <% if (!isvidious) { %> Mystery text : <%=btoa(VideoData.videoId + " i " + " lov " + " u " + "tube-proxy.poketube.fun" ) %>
<% } %> 143 : true



M O A R

More Epic options owo~


Open On YouTubePrivacyGit <% if (optout) { %> <% } %> <% if (!optout) { %> • Opt out of Metrics (Wut?) <% } %> <% if (lyrics && !r) { %> <% if (optout) { %>

Lyrics (Wow) <% } %> <% if (!optout) { %>

Lyrics (Wow) <% } %> <% } %> <% } %>

The Connection is secured with ECDSA with SHA-384 Signature Algorithm :3 Click here for encryption info

<% if (lyrics) { %> <% if (r === "f") { %>

See the Recommended videos instead - Report wrong lyrics qwq


Lyrics

See how our lyrics search works:Here

<%-lyrics%>

<% } %> <% } %>



Comments

Top Comments :3


<% if (inv != "Disabled") { %> <% if (!Array.isArray( inv.comments)) { %>

Comments couldnt load ;-; (Report dis issue or refresh the god damn page lol)

<% } %> <% } %> <% if (inv == "Disabled") { %>

Comments are disabled

<% } %> <% if (Array.isArray( inv.comments)) { %> <% inv.comments.forEach(x =>{ %>
<% if (!x.authorIsChannelOwner) { %>

<%- x.author%> <% if (x.verified) { %> <% } %>

<%- x.publishedText %>

<% } %> <% if (x.authorIsChannelOwner) { %>

<%- x.author%> <% if (x.verified) { %> <% } %>

<%- x.publishedText %>

<% } %>

<%- x.contentHtml.replace(/\n/g, "
"); %> <%- convert(x.likeCount) %> | <% if(x.creatorHeart) { %> <% } %>

<% }) %> <% } %>
<% if (!optout) { %> <% } %>
<% } %> <% } %> <% } catch (error) { %>

"Error while communicating with Invidious companion: Error connecting to 'gluetun:8282': Host is unreachable"

<% } %>