From c68063eeb72c6a780f779c36b40ef51d5bd16780 Mon Sep 17 00:00:00 2001 From: Arno Hautala Date: Thu, 2 Sep 2021 12:30:00 -0400 Subject: [PATCH] use the existing audio_ext set for checking file extensions --- ipod-shuffle-4g.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipod-shuffle-4g.py b/ipod-shuffle-4g.py index 7d3d71e..8e4520a 100755 --- a/ipod-shuffle-4g.py +++ b/ipod-shuffle-4g.py @@ -561,7 +561,7 @@ class Playlist(Record): if "/." not in dirpath: for filename in sorted(filenames, key = lambda x: x.lower()): # Only add valid music files to playlist - if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"): + if os.path.splitext(filename)[1].lower() in audio_ext: fullPath = os.path.abspath(os.path.join(dirpath, filename)) listtracks.append(fullPath) if not recursive: