Skip to content

Commit

Permalink
0.0.8 (#29)
Browse files Browse the repository at this point in the history
fix python 3 error introduced in version 0.0.7
  • Loading branch information
jneilliii authored May 4, 2020
1 parent 4fd227e commit a3add47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion octoprint_prusaslicerthumbnails/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _extract_thumbnail(self, gcode_filename, thumbnail_filename):
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+)(?:^; thumbnail end)"
with open(gcode_filename,"rb") as gcode_file:
test_str = gcode_file.read().decode('utf-8')
test_str = test_str.replace(b'\r\n',b'\n')
test_str = test_str.replace(octoprint.util.to_native_str('\r\n'),octoprint.util.to_native_str('\n'))
matches = re.findall(regex, test_str, re.MULTILINE)
if len(matches) > 0:
path = os.path.dirname(thumbnail_filename)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div>
<div id="crawl_files_results" class="row-fluid" data-bind="if: crawl_results().length > 0">
<div class="alert alert-block">
<h4>Crawl Results</h4>
<h4>Scan Results</h4>
<div class="muted" data-bind="if: show_crawl_warning()"><small><span class="label label-important">Warning: </span> Currently the scan is only able to process the root folder and first level of sub-folders.</small></div>
<ul class="unstyled" data-bind="foreach: { data: crawl_results, as: 'category', noChildContext: true }">
<!-- ko if:category.files().length == 0 -->
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 = "PrusaSlicer Thumbnails"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.0.7"
plugin_version = "0.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 a3add47

Please sign in to comment.