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