diff --git a/html/poketube.ejs b/html/poketube.ejs
index 6d2d0998..898cebca 100644
--- a/html/poketube.ejs
+++ b/html/poketube.ejs
@@ -1084,13 +1084,23 @@ Offical Discord Server! :3
- <% if (!qua) { //TODO - a %>
-
- <% } else { %>
-
- <% } %>
+ <%
+ 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) { %>
+
+<% } else { %>
+
+<% } %>
+