fix filters

main v1.0.1
Simon Vieille 1 month ago
parent 2058b7d938
commit e0c8708f0d
Signed by: deblan
GPG Key ID: 579388D585F70417
  1. 2
      README.md
  2. 2
      src/main.go

@ -48,6 +48,6 @@ You have several ways to select videos:
* `1-12`: equals `1 2 3 ... 12`
* `10-1`: equals `10 9 8 ... 1`
* `*` or `*+`: equals `1 2 ... x`
* `-*`: equals `x ... 3 2 1`
* `*-`: equals `x ... 3 2 1`
* `12-`: equals `12 11 10 ... 1`
* `12+`: equals `12 13 14 ... x`

@ -435,7 +435,7 @@ func selectFiles(files []File, input string) []File {
if input == "*" || input == "*+" {
result = getFilesByWildcard(files, result)
} else if input == "-*" {
} else if input == "*-" {
result = files
} else if isRange1 { // a-b
regex, _ := regexp.Compile(range1Regex)

Loading…
Cancel
Save