Format code

This commit is contained in:
Zoe Roux 2024-04-29 02:17:57 +02:00
parent 9e089b21ed
commit 8308bce42d
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View File

@ -108,7 +108,7 @@ class KyooClient:
logger.info("Deleting %s", path)
async with self.client.delete(
f'{self._url}/paths?recursive=true&path={quote(path)}',
f"{self._url}/paths?recursive=true&path={quote(path)}",
headers={"X-API-Key": self._api_key},
) as r:
if not r.ok:

View File

@ -9,7 +9,9 @@ from providers.kyoo_client import KyooClient
logger = getLogger(__name__)
async def scan(path: str, publisher: Publisher, client: KyooClient, remove_deleted = False):
async def scan(
path: str, publisher: Publisher, client: KyooClient, remove_deleted=False
):
logger.info("Starting the scan. It can take some times...")
ignore_pattern = None
try:
@ -35,4 +37,3 @@ async def scan(path: str, publisher: Publisher, client: KyooClient, remove_delet
await asyncio.gather(*map(publisher.add, to_register))
logger.info(f"Scan finished for {path}.")