mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-14 05:28:58 +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 %>
|
<%
|
||||||
<audio id="aud" preload>
|
let itag = null; // Default to null
|
||||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true" type="video/mp4" onerror="showErrorCard(event)"/>
|
inv_vid.adaptiveFormats.forEach(format => {
|
||||||
</audio>
|
if (format.itag == '136' || format.itag == '298') {
|
||||||
<% } else { %>
|
itag = '140'; // Set itag to '140' if either '136' or '298' is found
|
||||||
<audio id="aud"></audio>
|
}
|
||||||
<% } %>
|
});
|
||||||
|
%>
|
||||||
|
|
||||||
|
<% if (itag && !qua) { %>
|
||||||
|
<audio id="aud" preload>
|
||||||
|
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=<%=itag%>&local=true" type="video/mp4" onerror="showErrorCard(event)"/>
|
||||||
|
</audio>
|
||||||
|
<% } else { %>
|
||||||
|
<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