61 if not ":" in duration:
63 minutes, seconds = map(int, duration.split(
":"))
64 total_seconds = minutes * 60 + seconds
66 formatted_duration = str(timedelta(seconds=total_seconds))[2:]
if 0 <= total_seconds < 3600
else ""
68 return formatted_duration