custom.py.example
367 Bytes
#!/usr/bin/env python3
def filterEvent(event):
print(event)
# Enlève le Renforcement TOEIC
if event.shortName == 'Renf.TOEIC':
event.active = False
# Remplace LV2 par allemand
elif event.shortName == 'LV2':
event.shortName = 'All'
print(event.longName)
event.longName = event.longName.replace('LV2', 'Allemand')