Permalink
Browse files

More small tweaks

  • Loading branch information...
1 parent ddfcbee commit a1e929a00d257f767de0f4c22f7ecd6540e4cbf4 @jbillo jbillo committed Dec 4, 2012
Showing with 7 additions and 9 deletions.
  1. +1 −1 README.md
  2. +6 −8 app.py
View
@@ -1,7 +1,7 @@
MusicDirCleanup
===============
-A python script to tidy up music directories prior to running auto-tagging apps like Beets
+A Python script to tidy up music directories prior to running auto-tagging apps like Beets.
## Requirements
On a stock Ubuntu 10.04 or 12.04 installation:
View
14 app.py
@@ -174,16 +174,14 @@ def CombineSimilarlyNamedFolders(rootDir, dirsToCompare):
# Returns None if user aborts, True otherwise
def RenameFoldersNonAlphanumeric(rootDir):
if not rootDir.endswith('/'): rootDir = rootDir + '/'
- print ('Searching ' + rootDir + ' for non-alphanumeric folders...')
+ print ('Searching %s for non-alphanumeric folders...' % rootDir)
artistDirectories = os.listdir(rootDir)
artistDirectories.sort()
for artist in artistDirectories:
if not os.path.isdir(rootDir + artist): continue
- # if artist contains non-alphanumeric characters, optionally rename the folder
-
"""
Detect alphanumeric conditions - ignore the following:
@@ -330,11 +328,11 @@ def DeleteEmptyDirectories():
while True:
print('')
print ('Select an action to perform:')
- print ('1. Combine Artist Folders (level 1)')
- print ('2. Combine Album Folders (level 2)')
- print ('3. Rename Folders That Contain Non-Alphanumeric Characters')
- print ('4. Delete Unwanted File Types')
- print ('5. Delete Empty Directories')
+ print ('1. Combine artist directories (level 1)')
+ print ('2. Combine album directories (level 2)')
+ print ('3. Rename directories that contain non-standard characters')
+ print ('4. Delete unwanted file types')
+ print ('5. Delete empty directories')
print ('6. Quit')
action = raw_input('>')

0 comments on commit a1e929a

Please sign in to comment.