diff --git a/src/prep.py b/src/prep.py index 5dd22538..75be1157 100644 --- a/src/prep.py +++ b/src/prep.py @@ -1187,7 +1187,6 @@ def disc_screenshots(self, meta, filename, bdinfo, folder_id, base_dir, use_vs, else: if (meta.get('ffdebug', False)): loglevel = 'verbose' - debug = False else: loglevel = 'quiet' with Progress( @@ -1208,7 +1207,7 @@ def disc_screenshots(self, meta, filename, bdinfo, folder_id, base_dir, use_vs, .output(image, vframes=1, pix_fmt="rgb24") .overwrite_output() .global_args('-loglevel', loglevel) - .run(quiet=debug) + .run() ) except Exception: console.print(traceback.format_exc()) @@ -1300,7 +1299,6 @@ def dvd_screenshots(self, meta, disc_num, num_screens=None): else: if (meta.get('ffdebug', False)): loglevel = 'verbose' - debug = False else: loglevel = 'quiet' looped = 0 @@ -1387,7 +1385,7 @@ def _is_vob_good(n, loops, num_screens): image, vframes=1, pix_fmt="rgb24" - ).overwrite_output().global_args('-loglevel', loglevel).run(quiet=debug) + ).overwrite_output().global_args('-loglevel', loglevel).run() if not os.path.exists(image): if meta['debug']: @@ -1487,7 +1485,6 @@ def screenshots(self, path, filename, folder_id, base_dir, meta, num_screens=Non i = 0 if (meta.get('ffdebug', False)): loglevel = 'verbose' - debug = False else: loglevel = 'quiet' @@ -1539,7 +1536,7 @@ def screenshots(self, path, filename, folder_id, base_dir, meta, num_screens=Non .output(image_path, vframes=1, pix_fmt="rgb24") .overwrite_output() .global_args('-loglevel', loglevel) - .run(quiet=debug) + .run() ) except Exception as e: