diff options
author | Philipp Hagemeister <[email protected]> | 2014-03-24 22:30:32 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-03-24 22:30:32 +0100 |
commit | ba40a746669890ea54363565a8c3d4144f213595 (patch) | |
tree | 53b315a5c7ed4828484de7904193b476a38cda5a /youtube_dl/utils.py | |
parent | fb8ae2d43854c2e93ac5b8852deca2ec7298e03e (diff) | |
download | youtube-dl-ba40a746669890ea54363565a8c3d4144f213595.tar.gz youtube-dl-ba40a746669890ea54363565a8c3d4144f213595.zip |
[clipfish] Modernize
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 68d590ba2..fd03b0d7c 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1186,7 +1186,7 @@ def parse_duration(s): return None m = re.match( - r'(?:(?:(?P<hours>[0-9]+)[:h])?(?P<mins>[0-9]+)[:m])?(?P<secs>[0-9]+)s?$', s) + r'(?:(?:(?P<hours>[0-9]+)[:h])?(?P<mins>[0-9]+)[:m])?(?P<secs>[0-9]+)s?(?::[0-9]+)?$', s) if not m: return None res = int(m.group('secs')) |