mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:13:24 +02:00
fix formatting
This commit is contained in:
@@ -249,6 +249,7 @@ def upgrade() -> None:
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
|
||||
@@ -38,7 +38,7 @@ class SabnzbdDownloadClient(AbstractDownloadClient):
|
||||
port=str(self.config.port),
|
||||
api_key=self.config.api_key,
|
||||
)
|
||||
self.client._base_url = f"{self.config.host.rstrip('/')}:{self.config.port}/api" # the library expects a /sabnzbd prefix for whatever reason
|
||||
self.client._base_url = f"{self.config.host.rstrip('/')}:{self.config.port}/api" # the library expects a /sabnzbd prefix for whatever reason
|
||||
try:
|
||||
# Test connection
|
||||
version = self.client.version()
|
||||
@@ -62,7 +62,7 @@ class SabnzbdDownloadClient(AbstractDownloadClient):
|
||||
response = self.client.add_uri(
|
||||
url=str(indexer_result.download_url),
|
||||
)
|
||||
if not response["status"] == True:
|
||||
if not response["status"]:
|
||||
error_msg = response
|
||||
log.error(f"Failed to add NZB to SABnzbd: {error_msg}")
|
||||
raise RuntimeError(f"Failed to add NZB to SABnzbd: {error_msg}")
|
||||
|
||||
Reference in New Issue
Block a user