Add quality to mkflex

This commit is contained in:
Dan Jones 2025-09-03 11:24:23 -05:00
commit 75c6ce47e1
3 changed files with 21 additions and 0 deletions

View file

@ -36,6 +36,22 @@ tasks:
cmds:
- go build -o build/ ./cmd/{{.CMD}}
build-mkflex:
desc: Builds the mkflex command
sources:
- cmd/mkflex/**/*.go
- cli/**/*.go
- convids/**/*.go
- internal/cli/mkflex/**/*.go
- mkflex/**/*.go
- types/**/*.go
generates:
- builds/mkflex
cmds:
- task: cmd-build
vars:
CMD: mkflex
build-convids:
desc: Builds the convids command
sources:
@ -77,6 +93,7 @@ tasks:
desc: Installs the mkflex command
source:
- cmd/mkflex/**/*.go
- cli/**/*.go
- convids/**/*.go
- internal/cli/mkflex/**/*.go
- mkflex/**/*.go

View file

@ -38,6 +38,7 @@ type Show struct {
AlternateName []string `yaml:"alternate_name"`
Exact bool
Skip bool
Quality string
}
re *regexp.Regexp

View file

@ -90,6 +90,9 @@ func getShow(show conutils.Show, sh Series) SeriesGroups {
if !show.Flexget.Begin.IsZero() {
sh.Begin = show.Flexget.Begin
}
if show.Flexget.Quality != "" {
sh.Quality = show.Flexget.Quality
}
sh.AlternameName = show.Flexget.AlternateName
sh.Exact = show.Flexget.Exact
name := cmp.Or(show.Flexget.Name, show.Name, show.Pattern)