From 925c7f0a5707a2d5db9dc0ecf353766e9cc874e7 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 8 May 2024 22:20:29 +0000 Subject: [PATCH] in gridview, assume `.ts` files are video, not typescript --- copyparty/web/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index a5ea28ba..e98508d1 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4780,7 +4780,7 @@ var thegrid = (function () { fid = oth.getAttribute('id'), aplay = ebi('a' + fid), atext = ebi('t' + fid), - is_txt = atext && showfile.getlang(href), + is_txt = atext && showfile.getlang(href) && !/\.ts$/.test(href), is_img = img_re.test(href), is_dir = href.endsWith('/'), is_srch = !!ebi('unsearch'),