-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script stops execution of events if iCal has a color unknown to Google Calendar #308
Comments
An example ical event (see
|
May be a dupe of #93 |
Hello, This works:
This does not: BEGIN:VCALENDAR Any suggestion appreciated .. |
I think we need to ignore the colour tag if it's not able to be mapped to a gcal colour. |
@simonegiusti Please test the following change: Replace Helpers.gs lines 475-477
with:
|
Now it works perfectly !! |
This should be open until it's merged right ? |
@obbardc Does this fix your 2. issue aswell? |
@jonas0b1011001 yeah, it just doesn't set the colour as expected :-) Can you open a PR, please ? |
Well we are limited to the colors google offers us. We have discussed manually matching colors a while ago but i have no idea how to do that. |
No, I mean with this patch it is fine. If the ics has a colour which google doesn't understand, it sets it to default. Which is good for me. I don't care about colours in the destination calendar anyway ;-). |
Hi! I am really loving this script, thanks for supporting it.
It seems that there are two issues I want to create here:
color
(e.g.khaki
) cause the Google API to return an error and this error is just thrown and then the script just exits (see point 1 above). We should sanitise thecolorId
and make sure that the Google API supports that colour. For now, I have simply commented these three lines out since my events don't need colours.The text was updated successfully, but these errors were encountered: