From 74648fda59b10d7687bca821a3c88e4cdfc1604a Mon Sep 17 00:00:00 2001 From: Andras Palinkas Date: Fri, 23 Jun 2023 04:01:41 -0400 Subject: [PATCH] Fix factory_close and factory_destroy Removed the 'factory.' from the factory_close and factory_destroy API calls --- src/amcrest/media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amcrest/media.py b/src/amcrest/media.py index e297a8f..f242f2d 100644 --- a/src/amcrest/media.py +++ b/src/amcrest/media.py @@ -26,13 +26,13 @@ def factory_create(self) -> str: def factory_close(self, factory_id: str) -> str: ret = self.command( - f"mediaFileFind.cgi?action=factory.close&object={factory_id}" + f"mediaFileFind.cgi?action=close&object={factory_id}" ) return ret.content.decode() def factory_destroy(self, factory_id: str) -> str: ret = self.command( - f"mediaFileFind.cgi?action=factory.destroy&object={factory_id}" + f"mediaFileFind.cgi?action=destroy&object={factory_id}" ) return ret.content.decode()