Update consoleUI.py - Use groupname in tryadvcmds
This commit is contained in:
parent
dfe23966f2
commit
bb6b058562
@ -62,8 +62,8 @@ class ConsoleUI(threading.Thread):
|
|||||||
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)
|
s = re.match(r"^(?:s|seek)?\ ?(?P<sign>[+-])?(?P<time>\d+(?:[^\d\.](?:\d+)){0,2}(?:\.(?:\d+))?)$", data)
|
||||||
if(o):
|
if(o):
|
||||||
sign = self._extractRegexSign(o)
|
sign = self._extractRegexSign(o.group('sign'))
|
||||||
t = utils.parseTime(o.group(2))
|
t = utils.parseTime(o.group('time'))
|
||||||
if(t is None):
|
if(t is None):
|
||||||
return
|
return
|
||||||
if(sign):
|
if(sign):
|
||||||
@ -72,7 +72,7 @@ class ConsoleUI(threading.Thread):
|
|||||||
return True
|
return True
|
||||||
elif s:
|
elif s:
|
||||||
sign = self._extractRegexSign(s)
|
sign = self._extractRegexSign(s)
|
||||||
t = utils.parseTime(s.group(2))
|
t = utils.parseTime(s.group('time'))
|
||||||
if(t is None):
|
if(t is None):
|
||||||
return
|
return
|
||||||
if(sign):
|
if(sign):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user