Skip to content

Commit

Permalink
1.0.8
Browse files Browse the repository at this point in the history
fix support for elegoo thumbnail output, #129
  • Loading branch information
jneilliii committed Nov 13, 2024
1 parent cd52394 commit 2275d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octoprint_prusaslicerthumbnails/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def _extract_thumbnail(self, gcode_filename, thumbnail_filename):
use_flashprint = False
use_creality = False
use_buddy = False
with open(gcode_filename, "rb") as gcode_file:

with open(gcode_filename, "r", encoding="utf8", errors="ignore") as gcode_file:
for line in gcode_file:
lineNum += 1
line = line.decode("utf-8", "ignore")
gcode = octoprint.util.comm.gcode_command_for_cmd(line)
extrusion_match = octoprint.util.comm.regexes_parameters["floatE"].search(line)
if gcode == "G1" and extrusion_match:
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 = "Slicer Thumbnails"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.0.7"
plugin_version = "1.0.8"

# 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 2275d22

Please sign in to comment.