STM status header lucien lallier past due date (April 2024)
Closed this issue · 0 comments
Is your feature request related to a problem? Please describe.
STM message from the API always include the following header even if we're past the date:
Station Lucien-L'Allier : À partir du 1er avril 2024, aucun train exo ne desservira la gare Lucien-L'Allier. Pour en savoir plus
We want to remove this useless message since April is behind us.
Describe the solution you'd like
Remove the warning from the API message. An option would be to match with a regex and trim the first line which represent the warning.
Describe alternatives you've considered
Remove everything until the first tag "En savoir plus". The API format seems to be consistent so its more complex in my opinion. Match the message and removing everything until the first line break is better imh
Additional context
Thje actual behavior:
STM - Orange line
Station Lucien-L'Allier : À partir du 1er avril 2024, aucun train exo ne desservira la gare Lucien-L'Allier. <a class="external" href="https://exo.quebec/fr/actualites/realisations/gare-lucien-lallier?gad_source=1?utm_campaign=mip&utm_source=exogarell&utm_medium=horairesstm" target="_blank"> Pour en savoir plus</a>
Service normal du métro
🎵 too doo doo 🎵
The desired behavior:
STM - Orange line
Service normal du métro
🎵 too doo doo 🎵