mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format code
This commit is contained in:
parent
9e089b21ed
commit
8308bce42d
@ -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:
|
||||
|
@ -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}.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user