add jackett client package instead of external library

also, fixed non-tv category searches resulting in 0 results
This commit is contained in:
2026-02-19 16:53:03 +03:00
parent 67a9887058
commit e293f68c4a
5 changed files with 122 additions and 31 deletions

20
jackett/client.go Normal file
View File

@@ -0,0 +1,20 @@
package jackett
type Config struct {
Host string
APIKey string
}
type Client struct {
conf Config
}
func NewClient(conf Config) *Client {
return &Client{
conf: conf,
}
}
func (c *Client) buildUrl(path string) string {
return c.conf.Host + path
}