Improve jantoran2

This commit is contained in:
Quentin Dufour 2020-01-20 10:53:55 +00:00
parent 2580dee925
commit 32536b15d4

View file

@ -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]