Skip to content

Commit

Permalink
add 3D filters, closes #182
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed May 19, 2024
1 parent c0a74b0 commit 4272d28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addon/lib/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4272d28

Please sign in to comment.