mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
better enum comparison
This commit is contained in:
parent
299813bbaa
commit
622f55f62c
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ class PlaylistHeader(Record):
|
|||
playlist.populate(i)
|
||||
construction = playlist.construct(tracks)
|
||||
if playlist["number_of_songs"] > 0:
|
||||
if playlist["listtype"] == PlaylistType.PODCAST.value:
|
||||
if PlaylistType(playlist["listtype"]) == PlaylistType.PODCAST:
|
||||
podcastlistcount += 1
|
||||
playlistcount += 1
|
||||
chunks += [construction]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue