Sanitize the calendar data coming from Gadgetbridge? #6731
Replies: 1 comment
-
Posted at 2024-03-22 by @gfwilliams Yes, that sounds like a good idea. It's something that would need to be done inside Gadgetbridge though. I'll take a look and see how easy it is to get rid of stuff like that - however if Google change the format of invites then we'll probably have to change the regex again to try and strip them out. Posted at 2024-03-22 by @gfwilliams Ok, I've just added some code, so tomorrow the Gadgetbridge nightlies should have the fix in. I believe the HTML and Posted at 2024-03-22 by Pologram Great, thanks. I will test tomorrow and report back. Posted at 2024-03-25 by Pologram So I added the Gadgetbridge nightly repo on F-Droid, but the BangleJS Gadgetbridge Nightly app says "updated 4 days ago". Latest version is 0.79.1-banglejs-717bc3035 and it does not include your fix Posted at 2024-03-27 by Pologram I downloaded the APK directly from the website and it works! Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-03-21 by Pologram
Hello,
I am using the Rebble Agenda app and I noticed some weird artefacts (see attachment, event name redacted for privacy).
After further investigation, I saw that the artefacts actually come from the
android.calendar.json
file provided from Gadgetbridge.Here is an example of an event with such artefacts:
It looks like events that come from Google Workspace with a Google Meet invitation include some weird
-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-
separators that completely mess up the UI.Another event is difficult to read because it has HTML tags in it:
Would it be possible to "sanitize" this data coming from Gadgetbridge, maybe using a regex to remove HTML tags and separators?
It would subsequently fix all the apps that require the JSON file.
Thanks
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions