Update supported video extensions

This commit is contained in:
Ben Adrian Sarmiento
2024-06-19 20:29:05 +02:00
parent 9829b34254
commit 55edd46aa4
5 changed files with 16 additions and 15 deletions

View File

@@ -539,14 +539,14 @@ func checkArithmeticSequenceInFilenames(files []string) bool {
}
r := regexp.MustCompile(`\d+`)
for _, file := range files {
if !utils.IsPlayable(file) {
if !utils.IsVideo(file) {
continue
}
matches := r.FindAllStringIndex(file, -1)
for _, match := range matches {
numSet := make(map[int]struct{})
for _, file := range files {
if !utils.IsPlayable(file) {
if !utils.IsVideo(file) {
continue
}
if match[0] >= 0 && match[1] <= len(file) {