From bb28a4fa2f66c3f14330f2c232da59308598b50f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 21 Jul 2020 12:56:35 +0100 Subject: [PATCH] plugins/inara.py: Add two TODOs * Artie added a 'by-systemaddress' system lookup, use it. * This means we probably no longer need to update URLs in the inara_notify_location() function. --- plugins/inara.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inara.py b/plugins/inara.py index d95a41d4..761c78eb 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -61,6 +61,7 @@ this.station = None def system_url(system_name): if system_name: + # TODO: Switch this to https://inara.cz/galaxy-starsystem/?search=3932277478106 return requests.utils.requote_uri(f'https://inara.cz/galaxy-starsystem/?search={system_name}') return this.system @@ -896,6 +897,7 @@ def update_location(event=None): def inara_notify_location(eventData): this.system = eventData.get('starsystemInaraURL') if config.get('system_provider') == 'Inara': + # TODO: Bother with this? Just use systemaddress URL version when we detect it this.system_link['url'] = this.system # Override standard URL function this.station = eventData.get('stationInaraURL') if config.get('station_provider') == 'Inara':