We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 009f5e1 commit 6cca4ccCopy full SHA for 6cca4cc
1 file changed
python2.7/music-organizer.py
@@ -64,8 +64,8 @@ def toNeat(s):
64
s = re.sub("^-*", "", s)
65
s = re.sub("-*$", "", s)
66
67
- # Ensure the string is only alphanumeric with '-' and '+'.
68
- search = re.search("[^0-9a-z\-\+]", s)
+ # Ensure the string is only alphanumeric with '-', '+', and '='.
+ search = re.search("[^0-9a-z\-\+\=]", s)
69
if search:
70
print("Error: Unrecognized character in '" + s + "'")
71
sys.exit(-42)
@@ -151,6 +151,9 @@ def artist(artistDir):
151
shutil.rmtree(os.path.join(artistDir,d),ignore_errors=True)
152
153
def song(filename):
154
+ if filename[0] == '.':
155
+ print("Ignoring dotfile: '{}'".format(filename))
156
+ return
157
print("Organizing song '" + filename + "'.")
158
ext = os.path.splitext(filename)[1]
159
try:
0 commit comments