From 7dc7d4ca91d51152f22e654544416446c1e7f22c Mon Sep 17 00:00:00 2001 From: Arno Hautala Date: Wed, 25 Aug 2021 17:40:58 -0400 Subject: [PATCH] exclude podcasts from master playlist --- ipod-shuffle-4g.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipod-shuffle-4g.py b/ipod-shuffle-4g.py index a96a436..af9adde 100755 --- a/ipod-shuffle-4g.py +++ b/ipod-shuffle-4g.py @@ -589,6 +589,9 @@ class Playlist(Record): for i in self.listtracks: path = self.ipod_to_path(i) position = -1 + if self["listtype"] == 1 and "/iPod_Control/Podcasts/" in path: + print ('not including podcast in master playlist: {}'.format(path)) + continue try: position = tracks.index(path) except: