set total_podcasts = 0 before processing tracks in construct()

This commit is contained in:
Arno Hautala 2021-09-01 13:18:52 -04:00
parent a61317df67
commit 3d7189c36e

View file

@ -337,6 +337,7 @@ class TrackHeader(Record):
self["number_of_tracks"] = len(self.tracks) self["number_of_tracks"] = len(self.tracks)
self["total_length"] = 20 + (len(self.tracks) * 4) self["total_length"] = 20 + (len(self.tracks) * 4)
output = Record.construct(self) output = Record.construct(self)
self.total_podcasts = 0
# Construct the underlying tracks # Construct the underlying tracks
track_chunk = bytes() track_chunk = bytes()