This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
Fix the minutes part in FileDownloader.format_seconds (
fixed
#1397
)
It printed for the minutes the result of (seconds // 60)
rtmp_test
Jaime Marquínez Ferrándiz
11 years ago
parent
8963d9c266
commit
061b2889a9
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
youtube_dl/FileDownloader.py
+ 1
- 1
youtube_dl/FileDownloader.py
View 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
:
Write
Preview
Loading…
Cancel
Save