Open thislooksfun opened 2 years ago
What do you think about extracting the title from the feed but without the date and use this as the label?
I would probably parse the title using /^\d\d\d\d-\d\d-\d\d (.+) Sighting$/
, then replace "ISS" in the current string with the capture group. And, for future-proofing, if that regex doesn't match then you can fall back on just the event's title.
@thislooksfun I've updated and deployed the app.
The NASA feed shows both ISS and Cygnus sightings, but all the events in the calendar feed say "ISS is above you". It would be nice if the Cygnus sightings showed up differently in the feed.
It seems the problem is here: https://github.com/elitau/spotthestation/blob/a0210d6a31f8c308f8a41cc02623a873831ea4e5/lib/spotthestation2/extract_event_attributes.ex#L70-L72
Here's an example of a Cygnus sighting vs an ISS sighting, taken from this feed: