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

@@ -4,10 +4,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 {
@@ -19,9 +20,8 @@ type Client struct {
}
func New(cfg *Config) *Client {
l := logger.New(cfg.Verbosity).With().
Str("media", "omdb").
Logger()
l := logger.Child(logger.WithLevel(cfg.Verbosity)).With().
Str("media", "omdb").Logger()
return &Client{
log: l,