PassAndroid
PassAndroid copied to clipboard
Feature idea: Support "cloudTicket" provider
Hello,
When I try to export a cinema pass (issued by cloudTicket) to my calendar it the exported fields are wrong.
The concerned fields are the title and the location (see attachment)
My idea is to detect if it's a pass from cloudTicket and switch the fields to export.
In the attachment you can see that the title in the calendar contains the field
"description": "cloudTicket Kinotickets",
and the description has values from
"locations": [ { "longitude": 1.23456, "latitude": 9.876543, "relevantText": "Ihr Kino in der Nähe" }],
PassAndroid could check if the string "description" contains the value "cloudTicket" After that useful fields to export would be
-
"primaryFields": [ { "key": "film", "label": "KINOPOLIS XXCity1XX", "value": "The Equalizer 2 - Atmos" }],
(If "key"=="film" -> export "value" to calendar title&set end of film about 2 hours later instead of 8h) -
"locations": [ { "longitude": 1.23456, "latitude": 9.876543, "relevantText": "Ihr Kino in der Nähe" }],
(If "longitude"&&"latitude"!="" export them to calendar location) -
"secondaryFields": [ { "key": "seats", "label": "Kino 1", "value": "Reihe D, Plätze 16 bis 17" }],
(IF "key"=="label" -> export "label" and "value" to calendar description)
I've attached also the censored pass.json (equal variables (censored items) have the same name) pass.json.txt