Skip to content

Commit d79bfb3

Browse files
authored
0.1.3 (#57)
* reduced greediness of regular expression * fix state panel image not showing in OctoPrint 1.5.0 * added release channels available in OctoPrint 1.5.0
1 parent ecfb947 commit d79bfb3

File tree

5 files changed

+15
-44
lines changed

5 files changed

+15
-44
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Check out my other plugins [here](https://plugins.octoprint.org/by_author/#jneil
5555
- @tideline3d
5656
- [SimplyPrint](https://simplyprint.dk/)
5757
- [Andrew Beeman](https://github.com/Kiendeleo)
58+
- [Calanish](https://github.com/calanish)
5859

5960
### Support My Efforts
6061
I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.

octoprint_prusaslicerthumbnails/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_template_configs(self):
5353
def _extract_thumbnail(self, gcode_filename, thumbnail_filename):
5454
import re
5555
import base64
56-
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+)(?:^; thumbnail end)"
56+
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+?)(?:^; thumbnail end)"
5757
lineNum = 0
5858
collectedString = ""
5959
with open(gcode_filename,"rb") as gcode_file:
@@ -159,9 +159,19 @@ def get_update_information(self):
159159
user="jneilliii",
160160
repo="OctoPrint-PrusaSlicerThumbnails",
161161
current=self._plugin_version,
162+
stable_branch=dict(
163+
name="Stable", branch="master", comittish=["master"]
164+
),
165+
prerelease_branches=[
166+
dict(
167+
name="Release Candidate",
168+
branch="rc",
169+
comittish=["rc", "master"],
170+
)
171+
],
162172

163173
# update method: pip
164-
pip="https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/releases/latest/download/{target_version}.zip"
174+
pip="https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/archive/{target_version}.zip"
165175
)
166176
)
167177

octoprint_prusaslicerthumbnails/static/js/prusaslicerthumbnails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $(function() {
104104
if($('#prusalicer_state_thumbnail').length) {
105105
$('#prusalicer_state_thumbnail > img').attr('src', file_data.thumbnail);
106106
} else {
107-
$('#state > div > hr:nth-child(4)').after('<div id="prusalicer_state_thumbnail" class="row-fluid"><img src="'+file_data.thumbnail+'" width="100%"/>\n<hr/></div>');
107+
$('#state > div > hr:first').after('<div id="prusalicer_state_thumbnail" class="row-fluid"><img src="'+file_data.thumbnail+'" width="100%"/>\n<hr/></div>');
108108
}
109109
} else {
110110
$('#prusalicer_state_thumbnail').remove();

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "PrusaSlicer Thumbnails"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.1.2"
17+
plugin_version = "0.1.3"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)