scripts/eddn-report: Add Moonlight/1.3.4/Scan case

This commit is contained in:
Athanasius 2022-01-15 14:09:47 +00:00
parent 7b3dc68ad4
commit 1d15c546a8

View File

@ -246,6 +246,25 @@ def process_file(input_file: str) -> None:
if software_version >= semantic_version.Version.coerce('2.0.0.660'):
print(line)
# <https://edcodex.info/?m=tools&entry=440>
# <https://bitbucket.org/JuustoKakku/moonlight/src/master/>
elif matches.group('software_name') == 'Moonlight':
if matches.group('software_version') == '1.3.4':
if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/journal/1':
if matches.group('journal_event') == 'Scan':
# Ref: <https://bitbucket.org/JuustoKakku/moonlight/issues/5/bad-scan-events-being-sent-to-eddn>
if not matches.group('err_msg').startswith(
'Failed Validation "[<ValidationError: "{\'type\': [\'array\', \'boolean\', \'integer\', \'number\', \'null\', \'object\', \'string\']} is not allowed for \''
):
print(matches.group('err_msg'))
print(line)
else:
print(line)
else:
print(line)
# Abandoned/unmaintained project
# <https://forums.frontier.co.uk/threads/release-eva-elite-virtual-assistant-for-iphone-ipad-no-longer-working-jan-2020.245900/page-18>
# <https://apps.apple.com/gb/app/eva/id1098763533>