1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-29 14:49:29 +03:00

monitor: Change Journal file regex, because Frontier are being a PITA

They've changed it to an ISO8601 style full date/time now.  But the Odyssey
client still uses the old format.
This commit is contained in:
Athanasius 2022-03-15 13:56:48 +00:00
parent 248a34d24c
commit e17a40aaff
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -80,7 +80,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
_POLL = 1 # Polling is cheap, so do it often
_RE_CANONICALISE = re.compile(r'\$(.+)_name;')
_RE_CATEGORY = re.compile(r'\$MICRORESOURCE_CATEGORY_(.+);')
_RE_LOGFILE = re.compile(r'^Journal(Alpha|Beta)?\.[0-9]{12}\.[0-9]{2}\.log$')
_RE_LOGFILE = re.compile(r'^Journal(Alpha|Beta)?\.[0-9]{2,4}(-)?[0-9]{2}(-)?[0-9]{2}(T)?[0-9]{2}[0-9]{2}[0-9]{2}'
r'\.[0-9]{2}\.log$')
_RE_SHIP_ONFOOT = re.compile(r'^(FlightSuit|UtilitySuit_Class.|TacticalSuit_Class.|ExplorationSuit_Class.)$')
def __init__(self) -> None: