Remove errant carriage return in log message

This commit is contained in:
Ranko Kohime 2025-01-17 00:45:21 +00:00
parent 1643686104
commit 3fbacd0356

View File

@ -410,7 +410,7 @@ def report_retry(self, err, count, retries, frag_index=NO_DEFAULT, fatal=True):
RetryManager.report_retry(
err, count, retries, info=self.__to_screen,
warn=lambda msg: self.__to_screen(f'[download] Got error: {msg}'),
error=IDENTITY if not fatal else lambda e: self.report_error(f'\r[download] Got error: {e}'),
error=IDENTITY if not fatal else lambda e: self.report_error(f'[download] Got error: {e}'),
sleep_func=self.params.get('retry_sleep_functions', {}).get(is_frag or 'http'),
suffix=f'fragment{"s" if frag_index is None else f" {frag_index}"}' if is_frag else None)