diff --git a/html/watch.ejs b/html/watch.ejs index cd6f3536..12ad6cbb 100644 --- a/html/watch.ejs +++ b/html/watch.ejs @@ -410,7 +410,7 @@ button:hover, a:hover { - + @@ -1013,7 +1013,21 @@ Offical Discord Server! :3
- + + <% + let itag = null; // Default to null + VideoData.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 { %> + +<% } %> +