mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 16:58:14 +01:00
test ignore
This commit is contained in:
parent
3b9cff1c24
commit
a215c19082
1 changed files with 17 additions and 7 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue