Additional playable extensions

This commit is contained in:
Ben Sarmiento
2024-02-03 03:44:44 +01:00
parent 004257c7a7
commit 9a8b1553a2
6 changed files with 63 additions and 44 deletions

View File

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