We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d1286 commit b5830b3Copy full SHA for b5830b3
pyvideothumbnailer
@@ -219,8 +219,8 @@ def format_time(duration_in_seconds: float) -> str:
219
Returns:
220
str: A human-readable representation of the duration.
221
"""
222
- # Cast duration to full seconds
223
- duration = int(duration_in_seconds)
+ # Parse duration and cast to full seconds
+ duration = int(float(duration_in_seconds))
224
# Determine full hours
225
hours = int(duration / 3600)
226
# Determine full minutes of started hour
0 commit comments