mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 17:38:16 +01:00
fix /lite lol
This commit is contained in:
parent
0668ca9ab7
commit
fa178fc8a5
1 changed files with 35 additions and 40 deletions
|
@ -26,20 +26,20 @@
|
||||||
<!-- MetaTag disabled -->
|
<!-- MetaTag disabled -->
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (!e) { %>
|
<% if (!e) { %>
|
||||||
<meta content="<%=video.Title%>" name=title>
|
<meta content="<%=inv_vid.title%>" name=title>
|
||||||
<meta content="<%=color%>" name="theme-color">
|
<meta content="<%=color%>" name="theme-color">
|
||||||
<meta content="<%=video.Channel.Name%>" name=twitter:author>
|
<meta content="<%=k.Video.Channel.Name%>" name=twitter:author>
|
||||||
<meta content=@youtube name=twitter:site>
|
<meta content=@youtube name=twitter:site>
|
||||||
<meta content="https://poketube.fun/lite?v=<%=video.id%>" name=twitter:url>
|
<meta content="https://poketube.fun/lite?v=<%=inv_vid.videoId%>" name=twitter:url>
|
||||||
<meta content="<%=video.Title%> - PokeTube Lite " name=twitter:title>
|
<meta content="<%=inv_vid.title%> - PokeTube Lite " name=twitter:title>
|
||||||
<meta content="Watch this video by <%=video.Channel.Name%> On PokeTube Lite! Save Your Bandwidth while protecting your privacy!" property=twitter:description>
|
<meta content="Watch this video by <%=k.Video.Channel.Name%> On PokeTube Lite! Save Your Bandwidth while protecting your privacy!" property=twitter:description>
|
||||||
<meta content="https://i.ytimg.com/vi/<%=video.id%>/maxresdefault.jpg" property=og:image>
|
<meta content="https://i.ytimg.com/vi/<%=inv_vid.videoId%>/maxresdefault.jpg" property=og:image>
|
||||||
<meta content=summary_large_image name=twitter:card>
|
<meta content=summary_large_image name=twitter:card>
|
||||||
<link href="https://poketube.fun/lite?v=<%=video.id%>" itemprop=url>
|
<link href="https://poketube.fun/lite?v=<%=inv_vid.videoId%>" itemprop=url>
|
||||||
<link href="http://www.youtube.com/channel/<%=video.Channel.id%>" itemprop=url>
|
<link href="http://www.youtube.com/channel/<%=k.Video.Channel.id%>" itemprop=url>
|
||||||
<% } %> <!-- close the } -->
|
<% } %> <!-- close the } -->
|
||||||
<link href="/css/yt-ukraine.svg" rel=icon>
|
<link href="/css/yt-ukraine.svg" rel=icon>
|
||||||
<title> <%=video.Title%> | PokeTube Lite </title>
|
<title> <%=inv_vid.title%> | PokeTube Lite </title>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.comments-area {
|
.comments-area {
|
||||||
|
@ -294,7 +294,7 @@ background: none !important;
|
||||||
<i style="display: block;margin-left: auto;margin-right: auto;" class="fa-light fa-video"></i>
|
<i style="display: block;margin-left: auto;margin-right: auto;" class="fa-light fa-video"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="/embed/<%=video.id%>" style="text-decoration: none;" title="Embed">
|
<a href="/embed/<%=inv_vid.videoId%>" style="text-decoration: none;" title="Embed">
|
||||||
<i style="display: block;margin-left: auto;margin-right: auto;" class="fa-light fa-code"></i>
|
<i style="display: block;margin-left: auto;margin-right: auto;" class="fa-light fa-code"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -308,31 +308,31 @@ background: none !important;
|
||||||
|
|
||||||
<div class="video-player-container">
|
<div class="video-player-container">
|
||||||
|
|
||||||
<video class="player" id="<%=sha384(video.id)%>" style="border-radius: 0px:mrgin-left: -5.5px;" autoplay controls
|
<video class="player" id="<%=sha384(inv_vid.videoId)%>" style="border-radius: 0px:mrgin-left: -5.5px;" autoplay controls
|
||||||
|
|
||||||
poster="https://p.poketube.fun/https://i.ytimg.com/vi/<%=video.id%>/maxresdefault.jpg?v=607ddcd4">
|
poster="https://p.poketube.fun/https://i.ytimg.com/vi/<%=inv_vid.videoId%>/maxresdefault.jpg?v=607ddcd4">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<source src="https://tube.kuylar.dev/proxy/media/<%=video.id%>/18" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="false">
|
<source src="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/18" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="false">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<% if ( video.Subtitles.Subtitle) { %>
|
<% if ( video?.Subtitles?.Subtitle) { %>
|
||||||
|
|
||||||
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
|
<% if (Array.isArray( video?.Subtitles?.Subtitle)) { %>
|
||||||
<% video.Subtitles.Subtitle.forEach(x => { %>
|
<% video.Subtitles.Subtitle.forEach(x => { %>
|
||||||
<track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= x.language %>" label="<%= x.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||||
|
|
||||||
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(video.id)%>&h=<%= x.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(inv_vid.videoId)%>&h=<%= x.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
||||||
<% }) %>
|
<% }) %>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (!Array.isArray( video.Subtitles.Subtitle)) { %>
|
<% if (!Array.isArray( video.Subtitles.Subtitle)) { %>
|
||||||
<track src="/api/subtitles?v=<%=video.id%>&h=<%= video.Subtitles.Subtitle.language %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
<track src="/api/subtitles?v=<%=inv_vid.videoId%>&h=<%= video.Subtitles.Subtitle.language %>" label="<%= video.Subtitles.Subtitle.language.replace("United States","Simplified - USA") %>" kind="subtitles">
|
||||||
|
|
||||||
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(video.id)%>&h=<%= video.Subtitles.Subtitle.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
<img src="https://t.poketube.fun/t/rep.gif?v=<%=btoa(inv_vid.videoId)%>&h=<%= video.Subtitles.Subtitle.language %>" id="subtitle_usage_rate" style="border:0;width: 0;visibility: hidden;">
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
@ -345,10 +345,10 @@ background: none !important;
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="video-info" >
|
<div class="video-info" >
|
||||||
<div class="video-info-panel">
|
<div class="video-info-panel" style="border-radius:0em !important;">
|
||||||
<div class="video-title" style="font-family:Inter;font-weight:bold;line-break: auto;max-width: max-content;margin: 0;margin-bottom: 0;padding: 0;" title="<%=video.Title%>"><%=video.Title%> </div>
|
<div class="video-title" style="font-family:Inter;font-weight:bold;line-break: auto;max-width: max-content;margin: 0;margin-bottom: 0;padding: 0;" title="<%=inv_vid.title%>"><%=inv_vid.title%> </div>
|
||||||
|
|
||||||
<a href="#metadata" style="font-weight: bolder;font-family: sans-serif;color: #fff;font-size: small;"> <%=convert(engagement.viewCount)%> Views - By <%=video.Channel.Name%></a>
|
<a href="#metadata" style="font-weight: bolder;font-family: sans-serif;color: #fff;font-size: small;"> <%=convert(engagement.viewCount)%> Views - By <%=k.Video.Channel.Name%></a>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="video-info-buttons pill" >
|
<div class="video-info-buttons pill" >
|
||||||
|
@ -370,7 +370,7 @@ background: none !important;
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://tube.kuylar.dev/proxy/media/<%=video.id%>/18" style="text-align: center;font-size: x-large;margin: 9px;">
|
<a href="https://tube.kuylar.dev/proxy/media/<%=inv_vid.videoId%>/18" style="text-align: center;font-size: x-large;margin: 9px;">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<i class="fa-light fa-download"></i>
|
<i class="fa-light fa-download"></i>
|
||||||
|
@ -401,18 +401,13 @@ background: none !important;
|
||||||
<div class="video-title" style="color:#fff;font-family:'PokeTube Flex';font-weight:1000;font-stretch: extra-expanded;margin-top: 3px;margin-bottom: 10px;">Description</div>
|
<div class="video-title" style="color:#fff;font-family:'PokeTube Flex';font-weight:1000;font-stretch: extra-expanded;margin-top: 3px;margin-bottom: 10px;">Description</div>
|
||||||
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;/*! width: 4.5em; */height: 0;">
|
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;/*! width: 4.5em; */height: 0;">
|
||||||
|
|
||||||
<% if (String(video.Description) != "[object Object]") { %>
|
|
||||||
<% if (String(inv_vid.descriptionHtml) != "undefined") { %>
|
<% if (String(inv_vid.descriptionHtml) != "undefined") { %>
|
||||||
<% if (String(inv_vid.descriptionHtml) != " ") { %>
|
<% if (String(inv_vid.descriptionHtml) != " ") { %>
|
||||||
|
|
||||||
<%-String(inv_vid.descriptionHtml).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %>
|
<%-String(inv_vid.description).replace(/\n/g, " <br> ").replace(/twitter\.com/g, "nitter.net").replace(/reddit\.com/g, "teddit.net") %>
|
||||||
|
|
||||||
<% } %> <% } %>
|
<% } %> <% } %>
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<% if (String(video.Description) == "[object Object]") { %>
|
|
||||||
<p> No Description On this Video ( sad innit :c )</p>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -427,7 +422,7 @@ background: none !important;
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;/*! width: 4.5em; */height: 0;">
|
<hr style="clear: both;display: block;border: none;border-bottom: 0.5px solid #2f2f2f;/*! width: 4.5em; */height: 0;">
|
||||||
<% if (Array.isArray(video.Tags.Tag)) { %>
|
<% if (Array.isArray(video?.Tags?.Tag)) { %>
|
||||||
|
|
||||||
<div class="video-title" style="color:#fff;font-family:'PokeTube Flex';font-weight:1000;font-stretch: extra-expanded;margin-top: 10px;margin-bottom: 10px;">Tags</div>
|
<div class="video-title" style="color:#fff;font-family:'PokeTube Flex';font-weight:1000;font-stretch: extra-expanded;margin-top: 10px;margin-bottom: 10px;">Tags</div>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
|
@ -476,25 +471,25 @@ background: none !important;
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<a title="Download this Video :3" style="color:#fff;text-decoration: none; " href="/download?v=<%=video.id%>">
|
<a title="Download this Video :3" style="color:#fff;text-decoration: none; " href="/download?v=<%=inv_vid.videoId%>">
|
||||||
<i class="fa-light fa-download"></i>
|
<i class="fa-light fa-download"></i>
|
||||||
Download
|
Download
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<% if (!video.Channel.Name.endsWith(' - Topic')) { %>
|
<% if (!k.Video.Channel.Name.endsWith(' - Topic')) { %>
|
||||||
<% if (!video.Title.endsWith('Audio)')) { %>
|
<% if (!inv_vid.title.endsWith('Audio)')) { %>
|
||||||
|
|
||||||
<a title="Encryption duh" style="color:#fff;text-decoration: none;" href="/encryption?v=<%=video.id%>">
|
<a title="Encryption duh" style="color:#fff;text-decoration: none;" href="/encryption?v=<%=inv_vid.videoId%>">
|
||||||
<i class="fa-light fa-shield"></i>
|
<i class="fa-light fa-shield"></i>
|
||||||
Encryption
|
Encryption
|
||||||
</a>
|
</a>
|
||||||
<% }%> <% }%>
|
<% }%> <% }%>
|
||||||
|
|
||||||
<% if (video.Channel.Name.endsWith(' - Topic') || video.Title.endsWith('Audio)')) { %>
|
<% if (k.Video.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('Audio)')) { %>
|
||||||
|
|
||||||
<% if (video.Channel.Name.endsWith(' - Topic') || video.Title.endsWith('Audio)')) { %>
|
<% if (k.Video.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('Audio)')) { %>
|
||||||
<a title="open this song in poketube music player :3" style="color:#fff;text-decoration: none;" href="/music?v=<%=video.id%>">
|
<a title="open this song in poketube music player :3" style="color:#fff;text-decoration: none;" href="/music?v=<%=inv_vid.videoId%>">
|
||||||
<i class="fa-light fa-music"></i>
|
<i class="fa-light fa-music"></i>
|
||||||
Open In Music Player
|
Open In Music Player
|
||||||
</a>
|
</a>
|
||||||
|
@ -596,7 +591,7 @@ background: none !important;
|
||||||
<a href="/lite?v=<%= x.id %>&t=f" class="title max-lines-2" title="<%= x.Title %>"><%= x.Title %></a>
|
<a href="/lite?v=<%= x.id %>&t=f" class="title max-lines-2" title="<%= x.Title %>"><%= x.Title %></a>
|
||||||
<% } %>
|
<% } %>
|
||||||
<div>
|
<div>
|
||||||
<a class="max-lines-2" href="/channel?id=<%= video.Channel.id %>"><%=video.Channel.Name %></a>
|
<a class="max-lines-2" href="/channel?id=<%= video.Channel.id %>"><%=k.Video.Channel.Name %></a>
|
||||||
<div>
|
<div>
|
||||||
<%= x.uploadedAt %> • <%= convert(x.views) %> views</div>
|
<%= x.uploadedAt %> • <%= convert(x.views) %> views</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue