Skip to content

Commit

Permalink
Merge 6f4ab9d into c5bf013
Browse files Browse the repository at this point in the history
  • Loading branch information
esha71 committed May 29, 2021
2 parents c5bf013 + 6f4ab9d commit 2573db2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions youtube_transcript_api/formatters.py
Expand Up @@ -95,8 +95,9 @@ def _seconds_to_timestamp(self, time):
'00:00:06.930'
"""
time = float(time)
hours, mins, secs = (
int(time) // 3600,
hours= int(time) // 3600
time= time - hours*3600
mins, secs = (
int(time) // 60,
int(time) % 60,
)
Expand Down

0 comments on commit 2573db2

Please sign in to comment.