From: Urban Wallasch Date: Thu, 27 May 2021 23:51:05 +0000 (+0200) Subject: * Fixed respective return values of make_thumbs() and abort_build(). X-Git-Tag: v0.4~6 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=012b63ecd6093a065d5093b5211132fe7e0db472;p=ffpreview.git * Fixed respective return values of make_thumbs() and abort_build(). --- 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)