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