exclude podcasts from master playlist

This commit is contained in:
Arno Hautala 2021-08-25 17:40:58 -04:00
parent 571407953e
commit 7dc7d4ca91

View file

@ -589,6 +589,9 @@ class Playlist(Record):
for i in self.listtracks: for i in self.listtracks:
path = self.ipod_to_path(i) path = self.ipod_to_path(i)
position = -1 position = -1
if self["listtype"] == 1 and "/iPod_Control/Podcasts/" in path:
print ('not including podcast in master playlist: {}'.format(path))
continue
try: try:
position = tracks.index(path) position = tracks.index(path)
except: except: