From 317a0f6b6313ce69324efd8432da6ff726e4605d Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Sat, 11 Jul 2020 19:47:30 +0100 Subject: [PATCH] EDDB is default station provider, do station_marketid as needed We need a better way to do provider defaults. Heck, settings defaults period. Let's assume we'll put in place a "standard" config file once we move to one. --- plugins/eddb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index f0e31ba6..28e88b6e 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -75,7 +75,8 @@ def cmdr_data(data, is_beta): this.system_address = data['lastSystem']['id'] this.system_link['url'] = system_url(this.system_address) # Override standard URL function - if config.get('station_provider') == 'eddb': + # 'eddb' is also the *default* Station provider + if not config.get('station_provider') or config.get('station_provider') == 'eddb': # Only use CAPI value if not yet set # This is to avoid CAPI lagging causing incorrect value if not this.station_marketid: