Skip to content

Commit

Permalink
0.0.22
Browse files Browse the repository at this point in the history
* add file listing of avi files for non X1 devices, #29
  • Loading branch information
jneilliii committed May 24, 2024
1 parent ac7bb16 commit e1ea88d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion octoprint_bambu_printer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ def process():

try:
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:
if entry.startswith("/"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-BambuPrinter"

# 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
# module
Expand Down

0 comments on commit e1ea88d

Please sign in to comment.