]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Fix the minutes part in FileDownloader.format_seconds (fixed #1397)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 9 Sep 2013 08:38:54 +0000 (10:38 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 9 Sep 2013 08:38:54 +0000 (10:38 +0200)
It printed for the minutes the result of (seconds // 60)

youtube_dl/FileDownloader.py

index 7c5ac4bc2ecae6d3440266a98b2034ac5f56867a..0b5a5d77d409ca0a193a9ce6bf6890f88767459d 100644 (file)
@@ -66,7 +66,7 @@ class FileDownloader(object):
     @staticmethod
     def format_seconds(seconds):
         (mins, secs) = divmod(seconds, 60)
-        (hours, eta_mins) = divmod(mins, 60)
+        (hours, mins) = divmod(mins, 60)
         if hours > 99:
             return '--:--:--'
         if hours == 0: