feat: respect pvr exclusions (#37)
This commit is contained in:
@@ -5,8 +5,9 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/l3uddz/nabarr/util"
|
||||
"github.com/lucperkins/rek"
|
||||
|
||||
"github.com/l3uddz/nabarr/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -5,10 +5,11 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/l3uddz/nabarr/logger"
|
||||
"github.com/l3uddz/nabarr/util"
|
||||
"github.com/rs/zerolog"
|
||||
"go.uber.org/ratelimit"
|
||||
|
||||
"github.com/l3uddz/nabarr/logger"
|
||||
"github.com/l3uddz/nabarr/util"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
@@ -21,9 +22,8 @@ type Client struct {
|
||||
}
|
||||
|
||||
func New(cfg *Config) *Client {
|
||||
l := logger.New(cfg.Verbosity).With().
|
||||
Str("media", "tvdb").
|
||||
Logger()
|
||||
l := logger.Child(logger.WithLevel(cfg.Verbosity)).With().
|
||||
Str("media", "tvdb").Logger()
|
||||
|
||||
return &Client{
|
||||
log: l,
|
||||
|
||||
Reference in New Issue
Block a user