fixed Anime4KCPP execution issues

This commit is contained in:
k4yt3x 2020-05-08 22:34:53 -04:00
parent 91efe2d684
commit 9b20ef89c9
2 changed files with 4 additions and 5 deletions

View File

@ -768,10 +768,9 @@ When reporting an error, please include console output.'''
self.threadpool.start(worker)
# start progress monitoring
if AVAILABLE_DRIVERS[self.driver_combo_box.currentText()] != 'anime4kcpp':
progress_bar_worker = ProgressMonitorWorkder(self.progress_monitor)
progress_bar_worker.signals.progress.connect(self.set_progress)
self.threadpool.start(progress_bar_worker)
progress_bar_worker = ProgressMonitorWorkder(self.progress_monitor)
progress_bar_worker.signals.progress.connect(self.set_progress)
self.threadpool.start(progress_bar_worker)
self.start_button.setEnabled(False)
self.stop_button.setEnabled(True)

View File

@ -45,7 +45,7 @@ class WrapperMain:
parser.add_argument('-z', '--zoomFactor', type=float, help='zoom factor for resizing')
parser.add_argument('-t', '--threads', type=int, help='Threads count for video processing')
parser.add_argument('-f', '--fastMode', action='store_true', help='Faster but maybe low quality')
# parser.add_argument('-v', '--videoMode', action='store_true', help='Video process')
parser.add_argument('-v', '--videoMode', action='store_true', help='Video process')
parser.add_argument('-s', '--preview', action='store_true', help='Preview image')
parser.add_argument('-b', '--preprocessing', action='store_true', help='Enable pre processing')
parser.add_argument('-a', '--postprocessing', action='store_true', help='Enable post processing')