1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 05:14:39 -05:00

test ignore

This commit is contained in:
ashley 2024-08-23 23:12:41 +00:00
parent 3b9cff1c24
commit a215c19082

View file

@ -1084,13 +1084,23 @@ Offical Discord Server! :3
<div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container"> <div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container">
<% if (!qua) { //TODO - a %> <%
let itag = null; // Default to null
inv_vid.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) { %>
<audio id="aud" preload> <audio id="aud" preload>
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true" type="video/mp4" onerror="showErrorCard(event)"/> <source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=<%=itag%>&local=true" type="video/mp4" onerror="showErrorCard(event)"/>
</audio> </audio>
<% } else { %> <% } else { %>
<audio id="aud"></audio> <audio id="aud"></audio>
<% } %> <% } %>
<noscript> <noscript>
<% if (!qua) { %> <% if (!qua) { %>
<div id="nojs-high-res-warning" class="error-card"> <div id="nojs-high-res-warning" class="error-card">