From 6c0a84fc9946d779ef737887bdefb44abd39653c Mon Sep 17 00:00:00 2001 From: ashley Date: Thu, 1 Aug 2024 11:48:30 +0000 Subject: [PATCH] bwa --- html/poketube.ejs | 101 +++++++--------------------------------------- 1 file changed, 15 insertions(+), 86 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index 4d23a1c1..8df043c0 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -618,73 +618,7 @@ background-color: #0000; - <% if(shortsui) { %> - - <% } %> - - <% if (inv_vid.author.endsWith(' - Topic')) { %> - - <% } %> + <% if(dm) { %> @@ -771,16 +705,20 @@ background-color: #0000; <% if (!qua) { //TODO - a %> - var sources = player.currentSources(); +<% + 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" } + ]); + - // Add the new audio source - sources.push({ - type: 'audio/mp3', - src: '<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true' - }); - - // Set the updated source list - player.src(sources); <% } else { %> <% } %> }); @@ -1068,16 +1006,7 @@ Offical Discord Server! :3