aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-24 22:30:32 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-24 22:30:32 +0100
commitba40a746669890ea54363565a8c3d4144f213595 (patch)
tree53b315a5c7ed4828484de7904193b476a38cda5a /youtube_dl/utils.py
parentfb8ae2d43854c2e93ac5b8852deca2ec7298e03e (diff)
[clipfish] Modernize
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
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'))