metadata: Add support to extract metadata from g-code files generated by Bambu Studio

Signed-off-by: Li Jiang <softfeverever@gmail.com>
This commit is contained in:
SoftFever 2022-09-13 22:54:41 +08:00 committed by Eric Callahan
parent 07f4643070
commit df24e3ea77
1 changed files with 2 additions and 1 deletions

View File

@ -307,7 +307,8 @@ class PrusaSlicer(BaseSlicer):
aliases = {
'PrusaSlicer': r"PrusaSlicer\s(.*)\son",
'SuperSlicer': r"SuperSlicer\s(.*)\son",
'SliCR-3D': r"SliCR-3D\s(.*)\son"
'SliCR-3D': r"SliCR-3D\s(.*)\son",
'BambuStudio': r"BambuStudio[^ ]*\s(.*)\n"
}
for name, expr in aliases.items():
match = re.search(expr, data)