From 4272d2886ed7e93cad3d90ffcd345862dc515e89 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Sun, 19 May 2024 11:08:22 +0300 Subject: [PATCH] add 3D filters, closes #182 --- addon/lib/filter.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/addon/lib/filter.js b/addon/lib/filter.js index b41a3cc6..bf3c66f5 100644 --- a/addon/lib/filter.js +++ b/addon/lib/filter.js @@ -127,6 +127,22 @@ export const QualityFilter = { return hdrProfiles.includes('DV') && hdrProfiles.includes('HDR'); } }, + { + key: 'threed', + label: '3D', + test(quality) { + const hdrProfiles = quality?.split(' ')?.slice(1)?.join() || ''; + return hdrProfiles.includes('3D'); + } + }, + { + key: 'nonthreed', + label: 'Non 3D', + test(quality) { + const hdrProfiles = quality?.split(' ')?.slice(1)?.join() || ''; + return !hdrProfiles.includes('3D'); + } + }, { key: '4k', label: '4k',