This commit is contained in:
nin0dev 2024-08-01 10:43:15 -04:00
commit 33838c0b1d

View file

@ -382,7 +382,7 @@ a[data-onclick="jump_to_time"] {
<link href="https://vjs.zencdn.net/7.17.0/video-js.css" rel="stylesheet" /> <link href="https://vjs.zencdn.net/7.17.0/video-js.css" rel="stylesheet" />
<script src="https://vjs.zencdn.net/7.17.0/video.min.js"></script> <script src="https://vjs.zencdn.net/7.17.0/video.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/videojs-contrib-dash@latest/dist/videojs-dash.min.js"></script>
<% if (k.Video.Channel.Name == "7clouds") { %> <% if (k.Video.Channel.Name == "7clouds") { %>
<style> <style>
@font-face { @font-face {
@ -703,7 +703,24 @@ background-color: #0000;
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
var player = videojs('video'); var player = videojs('video');
<% if (!qua) { //TODO - a %>
<%
let itag = '136'; // Default itag
inv_vid.adaptiveFormats.forEach(format => {
if (format.itag == '298') {
itag = '298';
}
});
%>
player.src([
{ type: "video/mp4", src: "<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=<%=itag%>&local=true" },
{ type: "audio/mp3", src: "<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true" }
]);
<% } else { %>
<% } %>
}); });
</script> </script>
</ptd-app-iconfixer> </ptd-app-iconfixer>
@ -990,7 +1007,7 @@ Offical Discord Server! :3
<% if (isvidious) { %> <% if (isvidious) { %>
<% if (!qua) { %> <% if (!qua) { %>
<source src="/api/manifest/dash/id/<%=inv_vid.videoId%>" type="application/dash+xml"> <source id="my-spanish-audio-track" src="https://eu-proxy.poketube.fun/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="audio/ogg">
<% } %> <% } %>