Skip to content

Commit

Permalink
Merge pull request #74 from jneilliii/revert-73-patch-1
Browse files Browse the repository at this point in the history
Revert "recognize thumbnail begin from cura"
  • Loading branch information
jneilliii authored Apr 23, 2021
2 parents 84c86fa + b076b1f commit ab359be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_prusaslicerthumbnails/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_template_configs(self):
def _extract_thumbnail(self, gcode_filename, thumbnail_filename):
import re
import base64
regex = r"(?:^; thumbnail begin \d+[x ]\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+?)(?:^; thumbnail end)"
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+?)(?:^; thumbnail end)"
lineNum = 0
collectedString = ""
with open(gcode_filename,"rb") as gcode_file:
Expand Down

0 comments on commit ab359be

Please sign in to comment.