diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-09 00:41:59 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 00:41:59 +0530 |
commit | 819e05319baff2d896df026f1ef905e1f21be942 (patch) | |
tree | fb3ee4df64edf3729e3cab258d4c276588e41d42 /yt_dlp/postprocessor/modify_chapters.py | |
parent | fee3f44f5f58274c637499f077aa0312e650f493 (diff) | |
download | hypervideo-pre-819e05319baff2d896df026f1ef905e1f21be942.tar.lz hypervideo-pre-819e05319baff2d896df026f1ef905e1f21be942.tar.xz hypervideo-pre-819e05319baff2d896df026f1ef905e1f21be942.zip |
Improved progress reporting (See desc) (#1125)
* Separate `--console-title` and `--no-progress`
* Add option `--progress` to show progress-bar even in quiet mode
* Fix and refactor `minicurses`
* Use `minicurses` for all progress reporting
* Standardize use of terminal sequences and enable color support for windows 10
* Add option `--progress-template` to customize progress-bar and console-title
* Add postprocessor hooks and progress reporting
Closes: #906, #901, #1085, #1170
Diffstat (limited to 'yt_dlp/postprocessor/modify_chapters.py')
-rw-r--r-- | yt_dlp/postprocessor/modify_chapters.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/postprocessor/modify_chapters.py b/yt_dlp/postprocessor/modify_chapters.py index 2871e16d5..72a705fc5 100644 --- a/yt_dlp/postprocessor/modify_chapters.py +++ b/yt_dlp/postprocessor/modify_chapters.py @@ -292,8 +292,7 @@ class ModifyChaptersPP(FFmpegPostProcessor): 'name': SponsorBlockPP.CATEGORIES[category], 'category_names': [SponsorBlockPP.CATEGORIES[c] for c in cats] }) - outtmpl, tmpl_dict = self._downloader.prepare_outtmpl(self._sponsorblock_chapter_title, c) - c['title'] = self._downloader.escape_outtmpl(outtmpl) % tmpl_dict + c['title'] = self._downloader.evaluate_outtmpl(self._sponsorblock_chapter_title, c) # Merge identically named sponsors. if (new_chapters and 'categories' in new_chapters[-1] and new_chapters[-1]['title'] == c['title']): |