<% try { %> <% if (!isMobile) { %> <% if(secure) { %><% } %><% if(!secure) { %><% } %> <% if (e === false) { %> <% } %> <% if (!e) { %> <% const desc = `Watch this ${turntomins(VideoData?.lengthSeconds) || "LIVE"} long video from ${VideoData?.author} On Poke! 👍 ${convert(engagement?.likes)} | 👎 ${convert(engagement?.dislikes)} | 📈 ${convert(engagement?.viewCount)} Views 🗓️ ${date.replace("Premiered", " ")} 💬 ${!isNaN(inv.commentCount) ? inv.commentCount.toLocaleString() : 0}`; const image = `https://i.ytimg.com/vi/${VideoData.videoId}/maxresdefault.jpg`; const url = `https://${hostname}/watch?v=${VideoData?.videoId}`; const title = `${VideoData?.title} | Poke`; const twitterTags = [ { name: "twitter:author", content: VideoData?.author }, { name: "twitter:url", content: url }, { name: "twitter:title", content: title }, { name: "twitter:description", content: desc }, { name: "twitter:image", content: image }, { name: "twitter:card", content: "summary_large_image" }, ]; const facebookTags = [ { property: "facebook:title", content: title }, { property: "facebook:description", content: desc }, { property: "facebook:image", content: image }, ]; const ogTags = [ { property: "og:title", content: title }, { property: "og:type", content: "video.other" }, { property: "og:url", content: url }, { property: "og:description", content: desc }, { property: "og:image", content: image }, ]; %> <% twitterTags.forEach(tag => { -%> <% }) -%> <% facebookTags.forEach(tag => { -%> <% }) -%> <% ogTags.forEach(tag => { -%> <% }) -%> <% } %> <%= VideoData?.title %> | <%= /^[A-Z]/.test(VideoData.title) ? 'Watch' : 'watch' %> <% if (VideoData.title == "7clouds") { %> <% } %> <% if (VideoData.videoId == "QrGrOK8oZG8") { %> <% } %> <% if(IsOldWindows) { %> <% } %> <% if(dm) { %> <% } %>
<% 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') { %> <% } else { %> <% } %> <% if (!a) { %> <% } %>
<% 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 <% } %> <% } %> <% 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 (qua !== "medium") { %> Audio Format: 140 (AUDIO_QUALITY_MEDIUM) m4a | aac | 44100hz | STEREO(2channels)
<% } %> PokeEncryptID: <%=sha384(VideoData.videoId)%>
<% if (isvidious) { %> Proxy/Companion URL : <%= u.replace("https://", "").replace("poketube.fun", "") %>
<% } %> <% 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
<% if (universe) { %> <% } %> <% if (!VideoData.recommendedVideos || VideoData.recommendedVideos.length === 0) { %> <% } %> <% } %> <% if (isMobile) { %> <% if (isMobile) { %> <% if (e === false) { %> <% } %> <% if (!e) { %> <% } %> <%=VideoData.title%> | 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 %>!
Open On YouTube
<% if (Array.isArray( inv.comments)) { %>
Comments - <%- convert(inv.commentCount) %>

<%- inv.comments[0].contentHtml %>

<% } %>
<% 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) { %> 18 (320p) 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://","") %>
<% } %> <% if (!isvidious) { %> Proxy : tube-proxy.poketube.fun
<% } %> 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"

<% } %>