Browse Source

Merge pull request #183 from AndCycle/progressbar-eta

bring back progressbar ETA
Arnau Sanchez 6 years ago
parent
commit
a5d4bbbcbf
1 changed files with 6 additions and 3 deletions
  1. 6 3
      youtube_upload/main.py

+ 6 - 3
youtube_upload/main.py

@@ -66,9 +66,12 @@ def get_progress_info():
 
     if progressbar:
         bar = progressbar.ProgressBar(widgets=[
-            progressbar.Percentage(), ' ',
-            progressbar.Bar(), ' ',
-            progressbar.FileTransferSpeed(),
+            progressbar.Percentage(),
+            ' ', progressbar.Bar(),
+            ' ', progressbar.FileTransferSpeed(),
+            ' ', progressbar.DataSize(), '/', progressbar.DataSize('max_value'),
+            ' ', progressbar.Timer(),
+            ' ', progressbar.AdaptiveETA(),
         ])
         def _callback(total_size, completed):
             if not hasattr(bar, "next_update"):