mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-01 18:28:27 +02:00
fix: cups where missing 1/5 of the tracks
This commit is contained in:
parent
5d0f6c36b6
commit
9cf5d5d684
1 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ class ModConfig:
|
|||
for track in filter(lambda track: tag_cup in getattr(track, "tags", []), self.get_tracks()):
|
||||
track_buffer.append(track)
|
||||
|
||||
if len(track_buffer) > 4:
|
||||
if len(track_buffer) >= 4:
|
||||
current_tag_count += 1
|
||||
yield Cup(mod_config=self, tracks=track_buffer, cup_name=f"{current_tag_name}/{current_tag_count}")
|
||||
track_buffer = []
|
||||
|
@ -289,7 +289,7 @@ class ModConfig:
|
|||
):
|
||||
track_buffer.append(track)
|
||||
|
||||
if len(track_buffer) > 4:
|
||||
if len(track_buffer) >= 4:
|
||||
yield Cup(mod_config=self, tracks=track_buffer)
|
||||
track_buffer = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue