mirror of https://github.com/Syncplay/syncplay
Update consoleUI.py - Allow / sign for rel offset
This commit is contained in:
parent
9305b5e97b
commit
192153ab63
|
@ -59,7 +59,7 @@ class ConsoleUI(threading.Thread):
|
|||
return None
|
||||
|
||||
def _tryAdvancedCommands(self, data):
|
||||
o = re.match(r"^(?:o|offset)\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
|
||||
o = re.match(r"^(?:o|offset)\ ?(?P<sign>[/+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
|
||||
s = re.match(r"^(?:s|seek)?\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
|
||||
if(o):
|
||||
sign = self._extractSign(o.group('sign'))
|
||||
|
|
Loading…
Reference in New Issue