Fix merge conflict

Changed videotime_from_seconds function to fix merge conflict.
This commit is contained in:
Nitesh Sawant
2018-01-23 22:03:39 +05:30
committed by GitHub
parent 9ed7347f03
commit 988427d881

View File

@@ -107,12 +107,13 @@ def filter_path(path):
os.remove(os.path.join(path, temp))
def videotime_from_seconds(time):
if time < 60:
return str(time)
if time < 3600:
return '{}:{}'.format(str(time // 60), str(time % 60).zfill(2))
return '{0}:{1:02}'.format(time//60, time % 60)
return '{}:{}:{}'.format(str(time // 60),
str((time % 60) // 60).zfill(2),
str((time % 60) % 60).zfill(2))
return '{0}:{1:02}:{2:02}'.format((time//60)//60,
(time//60) % 60,
time % 60)