diff --git a/pandora/item/utils.py b/pandora/item/utils.py index fd0eee41..eb22963e 100644 --- a/pandora/item/utils.py +++ b/pandora/item/utils.py @@ -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]