fixing check for existing output files
This commit is contained in:
parent
b9df25ddf0
commit
263a45eeb5
1 changed files with 9 additions and 2 deletions
11
TVEncoder.py
11
TVEncoder.py
|
|
@ -33,13 +33,20 @@ def print_shows(shows, filemanager):
|
|||
Prints he details of the shows.
|
||||
"""
|
||||
|
||||
existing = []
|
||||
|
||||
for showdata in shows:
|
||||
if filemanager.checkfileexists(showdata.outputfile):
|
||||
print colored("File {0} already exists!".format(
|
||||
showdata.outputfile), 'red')
|
||||
existing.append(showdata)
|
||||
|
||||
print showdata
|
||||
|
||||
if len(existing) > 0:
|
||||
print colored("The following shows have existing output files that "
|
||||
"need to be fixed before proceeding:\n")
|
||||
|
||||
for showdata in existing:
|
||||
print colored(showdata)
|
||||
|
||||
def processarguments(options):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue