added a point that could help for track file format that could have the same name but with a suffix

This commit is contained in:
Faraphel 2022-07-21 15:53:36 +02:00
parent 66ced040d7
commit 2bb04dd97c

View file

@ -282,7 +282,7 @@ class ModConfig:
# prepare the default track # prepare the default track
default_track_file: Path = next( default_track_file: Path = next(
track_directory.rglob(f"{self.default_track.repr_format(self, self.track_file_template)}*") track_directory.rglob(f"{self.default_track.repr_format(self, self.track_file_template)}.*")
) )
yield {"description": "normalizing default track"} yield {"description": "normalizing default track"}
@ -295,7 +295,7 @@ class ModConfig:
for track in self.get_tracks(): for track in self.get_tracks():
track_file: Path = next( track_file: Path = next(
track_directory.rglob(f"{track.repr_format(self, self.track_file_template)}*") track_directory.rglob(f"{track.repr_format(self, self.track_file_template)}.*")
) )
@threaded @threaded