Improve jantoran2
This commit is contained in:
parent
2580dee925
commit
32536b15d4
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ def extract_info(inf, s):
|
||||||
try:
|
try:
|
||||||
with open(inf) as f:
|
with open(inf) as f:
|
||||||
full = ''.join(f.readlines())
|
full = ''.join(f.readlines())
|
||||||
|
w = re.search(r'identifier=jan_', full)
|
||||||
|
if not w: return False
|
||||||
x = re.search(r'server= (\S+) (\d+) (\d+) \d+ (\d+ (\S+))?', full)
|
x = re.search(r'server= (\S+) (\d+) (\d+) \d+ (\d+ (\S+))?', full)
|
||||||
if x:
|
if x:
|
||||||
s['current']['strat'] = x.groups()[0]
|
s['current']['strat'] = x.groups()[0]
|
||||||
|
|
Loading…
Reference in a new issue