From d6ceb78c829746f54b067c79087eb15d47707ac2 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 15 Nov 2011 21:25:28 +0100 Subject: Also parse strings with only seconds properly --- src/common.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common.py') diff --git a/src/common.py b/src/common.py index 226780bc..48613847 100644 --- a/src/common.py +++ b/src/common.py @@ -206,6 +206,8 @@ def parse_str_to_secs(duration=''): tmp = '0' else: result += int(tmp) + if tmp != '0': + result += int(tmp) return result def parse_secs_to_str(duration=0): -- cgit v1.2.3