mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
set total_podcasts = 0 before processing tracks in construct()
This commit is contained in:
parent
a61317df67
commit
3d7189c36e
1 changed files with 1 additions and 0 deletions
|
|
@ -337,6 +337,7 @@ class TrackHeader(Record):
|
|||
self["number_of_tracks"] = len(self.tracks)
|
||||
self["total_length"] = 20 + (len(self.tracks) * 4)
|
||||
output = Record.construct(self)
|
||||
self.total_podcasts = 0
|
||||
|
||||
# Construct the underlying tracks
|
||||
track_chunk = bytes()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue