mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-02-20 07:59:50 -05:00
fix typos
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user