I'm working with youtube-dl (subprocess), it gives the video duration like this:
- if it's 00:00:08, it gives:
8. - 00:03:42 >
3:42. - 00:03:08 >
3:08. - 01:02:06 >
1:02:06.
I want to convert the code formats to the bold!
Tried this but it gives error:
dt.strptime(YT_Duration_str, "%H:%M:%S")
ValueError: time data '8' does not match format '%H:%M:%S'
how can I achieve that?