Skip to content

Commit

Permalink
[utils] Improve parse_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly committed Jul 16, 2023
1 parent b515d4d commit 9eb3193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ def parse_duration(s):
)?
T)?
(?:
(?P<hours>[0-9]+)\s*h(?:ours?)?,?\s*
(?P<hours>[0-9]+)\s*h(?:(?:ou)?rs?)?,?\s*
)?
(?:
(?P<mins>[0-9]+)\s*m(?:in(?:ute)?s?)?,?\s*
Expand Down

0 comments on commit 9eb3193

Please sign in to comment.