amr ics custom filter

This download was created specifically to deal with an ics url which had urls to the event in the UID field, but no url in the URL field (?!)

It uses the ”amr-derive-custom-fields” filter in amr-ical-events plugin which gives one the opportunity to modify event field values.   It could be used as a code starting point for other similar uses.

It  checks whether a url already exists, if not, it checks whether the UID looks like a url.  They don’t always, and one doesn’t want to risk invalid html with unpredictable results.

If all is good, the UID is copied to the URL field.  The plugin can then be use this as a hyperlink for the event ‘SUMMARY’ field as proven in the screenshot of testing using the problematic ics file.

uidcopied