mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-20 02:54:22 +02:00
fix typos
This commit is contained in:
@@ -69,13 +69,13 @@ enabled = true
|
|||||||
url = "http://prowlarr:9696"
|
url = "http://prowlarr:9696"
|
||||||
api_key = "your_prowlarr_api_key"
|
api_key = "your_prowlarr_api_key"
|
||||||
reject_torrents_on_url_error = true
|
reject_torrents_on_url_error = true
|
||||||
timeout_secnds = 60
|
timeout_seconds = 60
|
||||||
|
|
||||||
[indexers.jackett]
|
[indexers.jackett]
|
||||||
enabled = false
|
enabled = false
|
||||||
url = "http://jackett:9117"
|
url = "http://jackett:9117"
|
||||||
api_key = "your_jackett_api_key"
|
api_key = "your_jackett_api_key"
|
||||||
indexers = ["1337x", "rarbg"]
|
indexers = ["1337x", "rarbg"]
|
||||||
timeout_secnds = 60
|
timeout_seconds = 60
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Jackett(GenericIndexer):
|
|||||||
self.api_key = config.api_key
|
self.api_key = config.api_key
|
||||||
self.url = config.url
|
self.url = config.url
|
||||||
self.indexers = config.indexers
|
self.indexers = config.indexers
|
||||||
self.timeout = config.timeout
|
self.timeout_seconds = config.timeout_seconds
|
||||||
|
|
||||||
def search(self, query: str, is_tv: bool) -> list[IndexerQueryResult]:
|
def search(self, query: str, is_tv: bool) -> list[IndexerQueryResult]:
|
||||||
log.debug("Searching for " + query)
|
log.debug("Searching for " + query)
|
||||||
@@ -60,7 +60,7 @@ class Jackett(GenericIndexer):
|
|||||||
self.url
|
self.url
|
||||||
+ f"/api/v2.0/indexers/{indexer}/results/torznab/api?apikey={self.api_key}&t={'tvsearch' if is_tv else 'movie'}&q={query}"
|
+ 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:
|
if response.status_code != 200:
|
||||||
log.error(
|
log.error(
|
||||||
|
|||||||
Reference in New Issue
Block a user