feat: respect pvr exclusions (#37)

This commit is contained in:
l3uddz
2022-04-14 16:18:06 +01:00
committed by GitHub
parent 2468d5b251
commit 79507adb4a
32 changed files with 321 additions and 99 deletions

View File

@@ -6,12 +6,13 @@ import (
"strings"
"time"
"github.com/rs/zerolog"
"github.com/l3uddz/nabarr"
"github.com/l3uddz/nabarr/cache"
"github.com/l3uddz/nabarr/logger"
"github.com/l3uddz/nabarr/media"
"github.com/l3uddz/nabarr/util"
"github.com/rs/zerolog"
)
type Client struct {
@@ -43,7 +44,7 @@ type Client struct {
}
func New(c nabarr.PvrConfig, mode string, m *media.Client, cc *cache.Client) (*Client, error) {
l := logger.New(c.Verbosity).With().
l := logger.Child(logger.WithLevel(c.Verbosity)).With().
Str("pvr_name", c.Name).
Str("pvr_type", c.Type).
Logger()