Skip to content

Commit 763a669

Browse files
committed
fs -pf --limit
1 parent d5f4f32 commit 763a669

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/playback/media_printer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def media_printer(args, data, units: str | None = "media", media_len=None) -> No
118118
if args.timeout_size and processes.sizeout(args.timeout_size, filesize):
119119
print(f"\nReached sizeout... ({args.timeout_size})", file=sys.stderr)
120120
break
121+
elif args.limit and args.limit <= MOVED_COUNT:
122+
print(f"\nReached limit... ({args.limit})", file=sys.stderr)
123+
break
121124

122125
new_data.append(d)
123126
MOVED_COUNT += 1

0 commit comments

Comments
 (0)