From aa740c22dc527daae4db87b054df5e2d72bb22ad Mon Sep 17 00:00:00 2001 From: Arno Hautala Date: Thu, 2 Sep 2021 12:30:00 -0400 Subject: [PATCH] move podcast playlist detection to cover pls and m3u handling --- ipod-shuffle-4g.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipod-shuffle-4g.py b/ipod-shuffle-4g.py index ba62a0f..7bcf67a 100755 --- a/ipod-shuffle-4g.py +++ b/ipod-shuffle-4g.py @@ -553,8 +553,6 @@ class Playlist(Record): # Folders containing no music and only a single Album # would generate duplicated playlists. That is intended and "wont fix". # Empty folders (inside the music path) will generate an error -> "wont fix". - if "/iPod_Control/Podcasts/" in playlistpath: - self.listtype = PlaylistType.PODCAST listtracks = [] for (dirpath, dirnames, filenames) in os.walk(playlistpath): dirnames.sort() @@ -584,6 +582,8 @@ class Playlist(Record): text = obj[0] else: filename = obj + if "/iPod_Control/Podcasts/" in filename: + self.listtype = PlaylistType.PODCAST if os.path.isdir(filename): self.listtracks = self.populate_directory(filename) text = os.path.splitext(os.path.basename(filename))[0]