mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Fix merge conflict
Changed videotime_from_seconds function to fix merge conflict.
This commit is contained in:
@@ -107,12 +107,13 @@ def filter_path(path):
|
|||||||
os.remove(os.path.join(path, temp))
|
os.remove(os.path.join(path, temp))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def videotime_from_seconds(time):
|
def videotime_from_seconds(time):
|
||||||
if time < 60:
|
if time < 60:
|
||||||
return str(time)
|
return str(time)
|
||||||
if time < 3600:
|
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),
|
return '{0}:{1:02}:{2:02}'.format((time//60)//60,
|
||||||
str((time % 60) // 60).zfill(2),
|
(time//60) % 60,
|
||||||
str((time % 60) % 60).zfill(2))
|
time % 60)
|
||||||
|
|||||||
Reference in New Issue
Block a user