feat: combine hevc/x265 and avc/x264 regex

This commit is contained in:
Viren070
2024-12-28 00:00:07 +00:00
parent 8abf25b8e8
commit c1a36ef8d3
2 changed files with 2 additions and 6 deletions
@@ -69,9 +69,7 @@ const defaultAudioTags: AudioTag[] = [
];
const defaultEncodes: Encode[] = [
{ x265: true },
{ HEVC: true },
{ x264: true },
{ AVC: true },
];
+2 -4
View File
@@ -46,10 +46,8 @@ export const PARSE_REGEX = {
AAC: /(?<![^ [_\-.])(aac)(?=[ \]_.-]|$)/i,
},
encodes: {
x265: /(?<![^ [_\-.])(x265|h265|h\.265)(?=[ \]_.-]|$)/i,
x264: /(?<![^ [_\-.])(x264|h264|h\.264)(?=[ \]_.-]|$)/i,
HEVC: /(?<![^ [_\-.])(hevc)(?=[ \]_.-]|$)/i,
AVC: /(?<![^ [_\-.])(avc)(?=[ \]_.-]|$)/i,
HEVC: /(?<![^ [_\-.])(hevc|x265|h265|h\.265)(?=[ \]_.-]|$)/i,
AVC: /(?<![^ [_\-.])(avc|x264|h264|h\.264)(?=[ \]_.-]|$)/i,
},
languages: {
English: /(?<![^ [_\-.])(english|eng)(?=[ \]_.-]|$)/i,