0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

Fix the minutes part in FileDownloader.format_seconds (fixed #1397)

It printed for the minutes the result of (seconds // 60)
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-09-09 10:38:54 +02:00
parent 8963d9c266
commit 061b2889a9

View file

@ -66,7 +66,7 @@ def format_bytes(bytes):
@staticmethod @staticmethod
def format_seconds(seconds): def format_seconds(seconds):
(mins, secs) = divmod(seconds, 60) (mins, secs) = divmod(seconds, 60)
(hours, eta_mins) = divmod(mins, 60) (hours, mins) = divmod(mins, 60)
if hours > 99: if hours > 99:
return '--:--:--' return '--:--:--'
if hours == 0: if hours == 0: