Ignore hidden filenames

This commit is contained in:
NicoHood 2016-08-27 14:18:15 +02:00
parent e189477870
commit d8eb3871bf

View file

@ -608,6 +608,8 @@ class Shuffler(object):
# Ignore the speakable directory and any hidden directories
if not is_path_prefix("iPod_Control/Speakable", relpath) and "/." not in dirpath:
for filename in sorted(filenames, key = lambda x: x.lower()):
# Ignore hidden files
if not filename.startswith("."):
fullPath = os.path.abspath(os.path.join(dirpath, filename))
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
self.tracks.append(fullPath)