mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 06:42:16 +00:00
Improved output of invalid names
This commit is contained in:
@@ -166,8 +166,17 @@ for cur in files:
|
||||
###################################
|
||||
# Show invalid names
|
||||
###################################
|
||||
for errorno,errordescr in errors.items():
|
||||
print errorno,errordescr,":"
|
||||
print "*"*20
|
||||
for c in getError(invalid,errorno):
|
||||
print c['filename']
|
||||
if len(invalid) > 0:
|
||||
print colour('WARNING', 'red'), ': Invalid file-names found'
|
||||
|
||||
for errorno,errordescr in errors.items():
|
||||
errors = getError(invalid,errorno)
|
||||
if len(errors) == 0: continue
|
||||
|
||||
errormsg = "# %s (error code %d)" % (errordescr, errorno)
|
||||
print "#"*len(errormsg)
|
||||
print errormsg
|
||||
print "#"*len(errormsg)
|
||||
|
||||
for c in errors:
|
||||
print c['filename']
|
||||
|
||||
Reference in New Issue
Block a user