mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix scanner delete/recreate handling
This commit is contained in:
parent
c7e6114480
commit
a01ce5c11c
@ -241,6 +241,7 @@ class Scanner:
|
|||||||
|
|
||||||
async def delete(self, path: str):
|
async def delete(self, path: str):
|
||||||
logging.info("Deleting %s", path)
|
logging.info("Deleting %s", path)
|
||||||
|
self.registered = filter(lambda x: x != path, self.registered)
|
||||||
async with self._client.delete(
|
async with self._client.delete(
|
||||||
f'{self._url}/movies?filter=path eq "{path}"',
|
f'{self._url}/movies?filter=path eq "{path}"',
|
||||||
headers={"X-API-Key": self._api_key},
|
headers={"X-API-Key": self._api_key},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user