This commit is contained in:
Arno Hautala 2021-09-01 12:30:00 -04:00
parent 0b277a967c
commit dde2e3b405

View file

@ -476,6 +476,9 @@ class PlaylistHeader(Record):
self["number_of_playlists"] = playlistcount
if podcastlistcount > 0:
# "number_of_non_podcast_lists" should default to 65535 if there
# aren't any podcast playlists, so only calculate the count if
# the podcastlistcount is greater than 0
self["number_of_non_podcast_lists"] = playlistcount - podcastlistcount
self["total_length"] = 0x14 + (self["number_of_playlists"] * 4)
# Start the header