add jackett client package instead of external library
also, fixed non-tv category searches resulting in 0 results
This commit is contained in:
20
jackett/client.go
Normal file
20
jackett/client.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user