sane-bt-search: handle trailing newlines in API key

This commit is contained in:
Colin 2023-05-15 10:07:00 +00:00
parent beef453802
commit b74c4550d5

View File

@ -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]