sigma67/ytmusicapi

`parse_duration` fails for very long videos

Closed this issue · 1 comments

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:

  1. Call get_playlist("PLfuGZPdCf-K_65ebc5u1yc5WonSf5HOXk")
  2. 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'

Wow... that's certainly an edge case I didn't expect