Skip to content

Conversation

@MisterTeknis
Copy link
Contributor

Changes:
Combined the sepearted model download logic into one path, for code reuse.
Optimised the temp file by making it more permanent to allow multiple functions to grab it without having to redownload. It has been named using the Printer IP and Printer name for future multiple printer support not causing temp file clashes.
Cleans up the temp file when the print finishes/fails.

Tested with P2S, AMS Pro 2 with LAN only mode.

Created list to handle previously downloaded files.
Added tracking of files for potential multi printer support
Already had logic to check for the end / failure of a print, moved the temp file deletion to be a part of that
Combined download logic for ease of updating
Cleaned up remains of separated model retrieval logic. Putting temp files in OpenSpoolMan temp directory for easier/safer file clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant