From a215c190822b6b254c44ce433d972c32588e94c3 Mon Sep 17 00:00:00 2001 From: ashley Date: Fri, 23 Aug 2024 23:12:41 +0000 Subject: [PATCH] test ignore --- html/poketube.ejs | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index 6d2d099..898cebc 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 { %> + +<% } %> +