add track mixes

This commit is contained in:
cwilvx
2024-11-27 12:35:48 +03:00
parent 809415ddb4
commit ee0f6c7646
5 changed files with 116 additions and 20 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ class Mix:
_dict = asdict(self)
_dict["tracks"] = serialized_tracks
if not self.extra.get("image"):
_dict["images"] = get_first_4_images(tracks)
# if not self.extra.get("image"):
# _dict["images"] = get_first_4_images(tracks)
_dict["duration"] = seconds_to_time_string(sum(t.duration for t in tracks))
_dict["trackcount"] = len(tracks)