forked from 0x2620/pandora
dont fail in parse_time if input is already a number
This commit is contained in:
parent
b2b3459fa2
commit
e94c146df0
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ def parse_time(t):
|
|||
parse time string and return seconds as float
|
||||
'''
|
||||
s = 0.0
|
||||
if isinstance(t, float) or isinstance(t, int):
|
||||
return s
|
||||
p = t.split(':')
|
||||
for i in range(len(p)):
|
||||
_p = p[i]
|
||||
|
|
Loading…
Reference in a new issue