mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
use the existing audio_ext set for checking file extensions
This commit is contained in:
parent
622f55f62c
commit
c68063eeb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue