diff --git a/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevice.py index 356f61b172..56e674fabe 100644 --- a/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevice.py @@ -200,6 +200,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): Logger.log("d", "Authentication was required. Setting up authenticator.") authenticator.setUser(self._authentication_id) authenticator.setPassword(self._authentication_key) + else: + Logger.log("d", "No authentication was required. The id is: %s", self._authentication_id) def getProperties(self): return self._properties diff --git a/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevicePlugin.py b/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevicePlugin.py index bb1fade0bc..7a86002210 100644 --- a/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevicePlugin.py +++ b/plugins/UM3NetworkPrintingPlugin/NetworkPrinterOutputDevicePlugin.py @@ -191,9 +191,12 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin): info = zeroconf.get_service_info(service_type, name) if info: - if info.properties.get(b"type", None) == b'printer': + type_of_device = info.properties.get(b"type", None).decode("utf-8") + if type_of_device == "printer": address = '.'.join(map(lambda n: str(n), info.address)) self.addPrinterSignal.emit(str(name), address, info.properties) + else: + Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." %type_of_device ) else: Logger.log("w", "Could not get information about %s" % name)