diff --git a/plugins/edsm.py b/plugins/edsm.py index b6775645..f6bd148c 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -29,8 +29,6 @@ this = sys.modules[__name__] # For holding module globals this.session = requests.Session() this.queue = Queue() # Items to be sent to EDSM by worker thread this.discardedEvents = [] # List discarded events from EDSM -this.last_edsy = None # URL of last ship that we sent to EDSM -this.last_coriolis = None # URL of last ship that we sent to EDSM this.lastlookup = False # whether the last lookup succeeded # Game state @@ -241,22 +239,6 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): this.queue.put((cmdr, entry)) - if entry['event'] == 'Loadout': - if 'EDShipyard' not in this.discardedEvents: - url = plug.invoke('EDSY', None, 'shipyard_url', entry, is_beta) - if this.last_edsy != url: - this.last_edsy = url - this.queue.put((cmdr, { - 'event': 'EDShipyard', 'timestamp': entry['timestamp'], '_shipId': state['ShipID'], 'url': url - })) - if 'Coriolis' not in this.discardedEvents: - url = plug.invoke('Coriolis', None, 'shipyard_url', entry, is_beta) - if this.last_coriolis != url: - this.last_coriolis = url - this.queue.put((cmdr, { - 'event': 'Coriolis', 'timestamp': entry['timestamp'], '_shipId': state['ShipID'], 'url': url - })) - # Update system data def cmdr_data(data, is_beta):