File: Do-not-set-bar-position.patch

package info (click to toggle)
python-ffmpeg-progress-yield 1.0.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 384 kB
  • sloc: python: 660; makefile: 13
file content (18 lines) | stat: -rw-r--r-- 765 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: Do not set bar position
Author: Alexander Sulfrian <alexander@sulfrian.net>
Forwarded: https://github.com/slhck/ffmpeg-progress-yield/pull/31

The cleanup of the bar in progress-only mode is broken with position=1.

Index: python-ffmpeg-progress-yield/src/ffmpeg_progress_yield/__main__.py
===================================================================
--- python-ffmpeg-progress-yield.orig/src/ffmpeg_progress_yield/__main__.py
+++ python-ffmpeg-progress-yield/src/ffmpeg_progress_yield/__main__.py
@@ -61,7 +61,6 @@ def main() -> None:
 
             with tqdm(
                 total=100,
-                position=1,
                 desc="Progress",
                 bar_format="{desc}: {percentage:3.2f}% |{bar}{r_bar}",
             ) as pbar: