Skip to content

Commit

Permalink
Update metadata.py
Browse files Browse the repository at this point in the history
Correction of the regex (Replacing the = with one:
and adding the filament index for the regex to work)
Correction du regex (Remplacement du = par un :
et ajout de l'index du filament pour que le regex fonctionne)
  • Loading branch information
Manu512 authored Nov 3, 2023
1 parent 4001137 commit eec1fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moonraker/components/file_manager/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,11 +778,11 @@ def parse_filament_total(self) -> Optional[float]:

def parse_filament_type(self) -> Optional[str]:
return _regex_find_string(
r";Filament\stype\s=\s(.*)", self.header_data)
r";Filament\sType\s.\d:\s(.*)", self.header_data)

def parse_filament_name(self) -> Optional[str]:
return _regex_find_string(
r";Filament\sname\s=\s(.*)", self.header_data)
r";Filament\sName\s.\d:\s(.*)", self.header_data)

def parse_filament_weight_total(self) -> Optional[float]:
pi = 3.141592653589793
Expand Down

0 comments on commit eec1fbd

Please sign in to comment.