mirror of https://github.com/Syncplay/syncplay
Fix offset sub-second precision bug (#642)
This commit is contained in:
parent
14c82a6d82
commit
7850c2a00d
|
@ -83,6 +83,8 @@ def retry(ExceptionToCheck, tries=4, delay=3, backoff=2, logger=None):
|
|||
|
||||
|
||||
def parseTime(timeStr):
|
||||
if ":" not in timeStr:
|
||||
return float(timeStr)
|
||||
regex = re.compile(constants.PARSE_TIME_REGEX)
|
||||
parts = regex.match(timeStr)
|
||||
if not parts:
|
||||
|
|
Loading…
Reference in New Issue