From 012b63ecd6093a065d5093b5211132fe7e0db472 Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Fri, 28 May 2021 01:51:05 +0200 Subject: [PATCH] * Fixed respective return values of make_thumbs() and abort_build(). --- ffpreview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffpreview.py b/ffpreview.py index 9699880..4e7b40f 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -1609,6 +1609,7 @@ class sMainWindow(QMainWindow): 'incomplete set of thumbnails.\n\nAbort anyway?') if QMessageBox.Yes == mbox.exec_(): kill_proc() + return True def force_rebuild(self): if self.thinfo['duration'] > 300: @@ -1874,7 +1875,7 @@ def make_thumbs(vidfile, thinfo, thdir, prog_cb=None): with open(os.path.join(thdir, _FFPREVIEW_IDX), 'w') as idxfile: thinfo['date'] = int(time.time()) json.dump(thinfo, idxfile, indent=2) - rc = True + rc = (retval == 0) except Exception as e: eprint(0, cmd, '\n failed:', str(e)) proc = kill_proc(proc) -- 2.30.2