parent
ac7bb16a2b
commit
e1ea88dbae
@ -146,7 +146,10 @@ class BambuPrintPlugin(octoprint.plugin.SettingsPlugin,
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
ftp = IoTFTPSClient(f"{host}", 990, "bblp", f"{access_code}", ssl_implicit=True)
|
ftp = IoTFTPSClient(f"{host}", 990, "bblp", f"{access_code}", ssl_implicit=True)
|
||||||
timelapse_file_list = ftp.list_files("timelapse/", ".mp4") or []
|
if self._settings.get(["device_type"]) in ["X1", "X1C"]:
|
||||||
|
timelapse_file_list = ftp.list_files("timelapse/", ".mp4") or []
|
||||||
|
else:
|
||||||
|
timelapse_file_list = ftp.list_files("timelapse/", ".avi") or []
|
||||||
|
|
||||||
for entry in timelapse_file_list:
|
for entry in timelapse_file_list:
|
||||||
if entry.startswith("/"):
|
if entry.startswith("/"):
|
||||||
|
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
|
|||||||
plugin_name = "OctoPrint-BambuPrinter"
|
plugin_name = "OctoPrint-BambuPrinter"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||||
plugin_version = "0.0.21"
|
plugin_version = "0.0.22"
|
||||||
|
|
||||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user