Skip to content

Commit 096db10

Browse files
Enhance yt_dlp's progress_hooks to include downloaded_bytes (#32)
Enhance yt_dlp's progress_hooks to include downloaded_bytes
2 parents 4f93ef9 + 43bb827 commit 096db10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xklb/tube_backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def out_dir(p):
347347
}
348348

349349
if args.verbose >= consts.LOG_DEBUG:
350-
func_opts["progress_hooks"] = [lambda d: log.debug(f"downloading {d['_percent_str']} {d['_speed_str']}")]
350+
func_opts["progress_hooks"] = [lambda d: log.debug(f"downloading {d['_percent_str']} {d['_speed_str']} {d['downloaded_bytes']} bytes")]
351351

352352
if args.profile != DBType.audio:
353353
func_opts["subtitlesformat"] = "srt/best"

0 commit comments

Comments
 (0)