Fix identify when the path has a column in it

This commit is contained in:
Zoe Roux 2023-04-28 15:06:32 +09:00
parent a3b2b80c1e
commit a7d8863998

View File

@ -34,7 +34,7 @@ class Scanner:
# TODO: Once movies are separated from the api, a new endpoint should be created to check for paths. # TODO: Once movies are separated from the api, a new endpoint should be created to check for paths.
async with self._client.get( async with self._client.get(
f"{self._url}/episodes/count", f"{self._url}/episodes/count",
params={"path": str(path)}, params={"path": f"eq:{path}"},
headers={"X-API-Key": self._api_key}, headers={"X-API-Key": self._api_key},
) as r: ) as r:
r.raise_for_status() r.raise_for_status()