fix typos

This commit is contained in:
maxid
2025-12-10 18:12:05 +01:00
parent c984d40fd3
commit dda9be13bb
2 changed files with 4 additions and 4 deletions

View File

@@ -69,13 +69,13 @@ enabled = true
url = "http://prowlarr:9696"
api_key = "your_prowlarr_api_key"
reject_torrents_on_url_error = true
timeout_secnds = 60
timeout_seconds = 60
[indexers.jackett]
enabled = false
url = "http://jackett:9117"
api_key = "your_jackett_api_key"
indexers = ["1337x", "rarbg"]
timeout_secnds = 60
timeout_seconds = 60
```

View File

@@ -24,7 +24,7 @@ class Jackett(GenericIndexer):
self.api_key = config.api_key
self.url = config.url
self.indexers = config.indexers
self.timeout = config.timeout
self.timeout_seconds = config.timeout_seconds
def search(self, query: str, is_tv: bool) -> list[IndexerQueryResult]:
log.debug("Searching for " + query)
@@ -60,7 +60,7 @@ class Jackett(GenericIndexer):
self.url
+ f"/api/v2.0/indexers/{indexer}/results/torznab/api?apikey={self.api_key}&t={'tvsearch' if is_tv else 'movie'}&q={query}"
)
response = session.get(url, timeout=self.timeout)
response = session.get(url, timeout=self.timeout_seconds)
if response.status_code != 200:
log.error(