Skip to content

Commit 1b3479a

Browse files
committed
music-organizer: Ignore iTunes and playlist directory when sorting a collection.
1 parent 00e482b commit 1b3479a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python2.7/music-organizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ def song(filename):
160160

161161
def collection():
162162
for f in os.listdir("."):
163-
if os.path.isdir(f): artist(f)
163+
if os.path.isdir(f):
164+
if f != 'iTunes' and f != 'playlists':
165+
artist(f)
164166
elif os.path.isfile(f): song(f)
165167

166168
if args.artist:

0 commit comments

Comments
 (0)