Fixing renamed properties

This commit is contained in:
2013-07-13 21:09:14 +10:00
parent 7e777a4719
commit 3d914c704a

View File

@@ -106,16 +106,16 @@ def main(argv):
showdata = filemanager.getencodingfiles(inputoptions.readonly) showdata = filemanager.getencodingfiles(inputoptions.readonly)
for show in showdata: for show in showdata:
if filemanager.checkfileexists(show.outputFile): if filemanager.checkfileexists(show.outputfile):
print "File {0} already exists. Cannot process." \ print "File {0} already exists. Cannot process." \
.format(show.outputFile) .format(show.outputfile)
else: else:
result = libhandbrake.encode(settings.handbrakecommand(), result = libhandbrake.encode(settings.handbrakecommand(),
show.inputFile, show.inputfile,
show.outputFile) show.outputfile)
# TODO do something with the result # TODO do something with the result
filemanager.performpostencodefileoperations( filemanager.performpostencodefileoperations(
show.inputFile, show.outputFile) show.inputfile, show.outputfile)
else: else:
# Process files for encoding # Process files for encoding
shows = filemanager.getfilestoprepare(inputoptions.numfiles) shows = filemanager.getfilestoprepare(inputoptions.numfiles)