Skip to content

Commit

Permalink
Fix one, break one
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 23, 2024
1 parent a5ed7d7 commit 20949b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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())
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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']:
Expand Down Expand Up @@ -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'

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 20949b5

Please sign in to comment.