mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	Beautify videotime_from_seconds func
This commit is contained in:
		@@ -104,8 +104,8 @@ 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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user