Fix scanner delete/recreate handling

This commit is contained in:
Zoe Roux 2024-01-30 22:36:33 +01:00
parent c7e6114480
commit a01ce5c11c

View File

@ -241,6 +241,7 @@ class Scanner:
async def delete(self, path: str):
logging.info("Deleting %s", path)
self.registered = filter(lambda x: x != path, self.registered)
async with self._client.delete(
f'{self._url}/movies?filter=path eq "{path}"',
headers={"X-API-Key": self._api_key},