• Added debug code to output number of frame segments.
1 parent b24b4fa commit 044c096e2ae67838b5e0d9aaff2d243c157c9ad5
Nigel Stanger authored on 19 Sep 2016
Showing 1 changed file
View
1
■■■■
process_podcast.py
fn = "process_frame_segments"
globals.log.info("Processing frames...")
frame_segments = [s for s in segments if isinstance(s, FrameSegment)]
n = len(frame_segments)
globals.log.debug("{fn}(): num frames = {n}".format(fn=fn, n=n))
progress = ProgressBar(max_value=n, quiet=args.quiet or args.debug)
for i, f in enumerate(frame_segments):
progress.update(i)
globals.log.debug("{fn}(): frame (before) = {b}".format(fn=fn, b=f))