sane-bt-search: handle trailing newlines in API key
This commit is contained in:
parent
beef453802
commit
b74c4550d5
|
@ -77,7 +77,7 @@ class Torrent:
|
|||
|
||||
class Client:
|
||||
def __init__(self):
|
||||
self.apikey = open("/run/secrets/jackett_apikey").read()
|
||||
self.apikey = open("/run/secrets/jackett_apikey").read().strip()
|
||||
|
||||
def api_call(self, method: str, params: dict) -> dict:
|
||||
endpoint = ENDPOINTS[method]
|
||||
|
|
Loading…
Reference in New Issue
Block a user