bastimeyer · GitHub

- Remove `streamlink_cli.utils.terminal` module again and move logic
  to the `Progress` and `ProgressFormatter` classes
- Replace `output` and `formatter` arguments of the `Progress` class
  with a simple `stream` argument
- Rewrite `ProgressFormatter.format()`
  - Pre-parse format strings via `string.Formatter.parse()`
    and store the parsing results
  - Add support for substitutions with dynamic/variable lengths
- Update tests

@bastimeyer

- Add `path` argument to the `Progress` class
- Update formats and add path variable with a min-width of 15
- Truncate paths according to the available space
- Add and update tests

@bastimeyer

@gravyboat

@bastimeyer

bastimeyer deleted the cli/progress/refactor-and-add-path branch

August 24, 2022 17:31

Merged

Closed

4 tasks

snorkelopsstgtesting1-spec pushed a commit to snorkel-marlin-repos/streamlink_streamlink_pr_4764_d35355b4-db8d-489f-9fbf-7b826df26693 that referenced this pull request

Oct 22, 2025

Shallow Copy Bot

Merged

snorkelopstesting3-bot added a commit to snorkel-marlin-repos/streamlink_streamlink_pr_4764_d35355b4-db8d-489f-9fbf-7b826df26693 that referenced this pull request

Oct 22, 2025

Read the original on github.com ↗