`parse_duration` fails for very long videos
Closed this issue · 1 comments
abhishekmj303 commented
Describe the bug
get_playlist
fails when the playlist contains very long videos like this. These are basically streams converted to videos.
The above mentioned duration is: 13,165:23:44
To Reproduce
Steps to reproduce the behavior:
- Call
get_playlist("PLfuGZPdCf-K_65ebc5u1yc5WonSf5HOXk")
- Get error:
/lib/python3.11/site-packages/ytmusicapi/parsers/_utils.py", line 71, in <genexpr>
seconds = sum(multiplier * int(time) for multiplier, time in mapped_increments)
^^^^^^^^^
ValueError: invalid literal for int() with base 10: '13,165'
sigma67 commented
Wow... that's certainly an edge case I didn't expect