mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-08 00:18:01 +09:00
comments
This commit is contained in:
parent
0b277a967c
commit
dde2e3b405
1 changed files with 3 additions and 0 deletions
|
|
@ -476,6 +476,9 @@ class PlaylistHeader(Record):
|
||||||
|
|
||||||
self["number_of_playlists"] = playlistcount
|
self["number_of_playlists"] = playlistcount
|
||||||
if podcastlistcount > 0:
|
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["number_of_non_podcast_lists"] = playlistcount - podcastlistcount
|
||||||
self["total_length"] = 0x14 + (self["number_of_playlists"] * 4)
|
self["total_length"] = 0x14 + (self["number_of_playlists"] * 4)
|
||||||
# Start the header
|
# Start the header
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue