Skip to content

Commit

Permalink
desktop.media.tomkv: quote more stuff in printed ffmpeg lines, to be …
Browse files Browse the repository at this point in the history
…more usable as-is
  • Loading branch information
mk-fg committed Nov 26, 2024
1 parent c521bb9 commit 04fc123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/media/tomkv
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def main(args=None):
if n == nx and not dry_run: _skipped_stats_catchup(n+1)
if n <= nx: continue
if dry_run: msg = msg.strip()
print(msg); print(' '.join((repr(a) if any(
c in a for c in '\'" ') else a) for a in cmd), end='\n\n', flush=True)
print(msg); print(' '.join((repr(a) if any( c in a for c in
r' \'"|*?!&$`{}[];' ) else a) for a in cmd), end='\n\n', flush=True)
if dry_run: continue

sp.run( cmd, check=True,
Expand Down

0 comments on commit 04fc123

Please sign in to comment.