Commit Graph
110 Commits
Author SHA1 Message Date
Athanasius 6c2a44e29b companion.py: De-future 2019-09-26 11:40:42 +01:00
Athanasius e40dc5a4ae Removes problematic .encode('utf-8')'s in companion.py 2019-09-26 11:40:42 +01:00
Athanasius 1cedfaf759 Fixes EDDN sending to be working.
NB: Due to, I assume, EDDN relay de-duplication of messages, it's been
difficult to 100% test this.  No errors thrown, and stock/release EDMC
also doesn't result in a new message arriving at my EDDN consumer.
2019-09-26 11:40:41 +01:00
Athanasius e2be3b98e6 Use .items() instead of .iteritems() 2019-09-26 11:40:41 +01:00
Athanasius 08e5b6ff6a Fixes generation of market CSV files 2019-09-26 11:40:41 +01:00
Athanasius 457c533980 Fixes Frontier oAuth2 initiation 2019-09-26 11:40:41 +01:00
Athanasius 9910024004 Now runs without console errors so far as pressing 'Update' is concerned.
There's an error on the console about an iterator when doing so
though.
2019-09-26 11:40:41 +01:00
Athanasius 218c068ee5 Running EDMarketConnector.py 'works'.
First pass utilising 'futurize' to do most of the work.

  There's an issue with ur'\"' in l10n.py which I'm not sure how to
properly fix.

  This now has errors when hitting the 'Update' button.
2019-09-26 11:40:38 +01:00
Jonathan Harris 169c8e09b4 Run from source without obtaining a CLIENT_ID 2019-06-19 12:24:22 +01:00
Jonathan Harris 569bb0d834 Increase Auth timeout 2019-04-26 18:10:42 +01:00
Jonathan Harris 11000b086d Generate separate error when deauthorization is required 2019-02-19 18:16:07 +00:00
Jonathan Harris 8838dde116 More robust handling of cAPI server errors 2019-01-18 13:21:51 +00:00
Jonathan Harris 21b70cccfd Force re-authentication on 4xx return from cAPI
Fixes #398
2019-01-17 16:08:00 +00:00
Jonathan Harris d4cb8b8ff6 Don't hang when cAPI server down 2019-01-16 15:31:09 +00:00
Jonathan Harris fd492cdf94 Support authentication when running from source
Fixes #395
2019-01-14 21:33:41 +00:00
Jonathan Harris f00e44065c Set Auth scope to capi 2019-01-10 13:28:07 +00:00
Jonathan Harris 4900969bd9 cAPI data doesn't seem to reliably reflect whether user has Horizons 2019-01-10 01:12:09 +00:00
Jonathan Harris 6ae3c4c786 Don't offer XBox, PSN or Steam options to authenticate 2019-01-07 17:19:21 +00:00
Jonathan Harris 7f6c28488d Fix for non-ASCII Cmdr names 2019-01-05 17:33:50 +00:00
Jonathan Harris 5c8f97a8dd Fix for hang on failed authentication through Steam
Fixes #376 & #377
2019-01-03 16:01:44 +00:00
Jonathan Harris 1ae89de163 Fix token expiry handling 2018-12-31 12:35:25 +00:00
Jonathan Harris fb911ef28e More logging of OAuth process 2018-12-31 00:25:16 +00:00
Jonathan Harris 0630ff6710 Force re-authentication if credentials entered for wrong Cmdr 2018-12-30 20:09:15 +00:00
Jonathan Harris 56223cdee0 Better error handling during OAuth authorization callback
Allow retry after failed authorization.
2018-12-28 18:49:37 +00:00
Jonathan Harris f17f5d3f25 PKCE OAuth2 access to cAPI 2018-12-28 03:32:26 +00:00
Jonathan Harris 99b3450992 Add Krait Phantom and Mamba 2018-11-16 11:44:08 +00:00
Jonathan Harris f2bd931a84 Add missing 3.2 ships, modules & commoditites 2018-09-25 00:17:59 +01:00
Jonathan Harris 6bffcf473e Also fixup rare commodities 2018-08-01 00:23:47 +01:00
Jonathan Harris 9ced79f077 Add 3.1 ships and modules 2018-07-08 01:04:04 +01:00
Jonathan Harris ebbeb000c8 Send appname to cAPI in User-Agent string 2018-06-13 13:01:13 -05:00
Jonathan Harris b73f68b258 Parse cAPI header's date in locale-independent manner
Fixes #315
2018-05-02 13:54:12 +01:00
Jonathan Harris 6c254f4bcd Get timestamp for cAPI-derived data from cAPI server
Fixes #318
2018-04-25 00:43:32 +01:00
Jonathan Harris 0eaa61bdd9 Make system and station info websites configurable 2018-04-03 01:03:07 +01:00
Jonathan Harris b102b8c5b8 Sanitise ship loadout file names
Fixes #303
2018-03-18 11:48:04 +00:00
Jonathan Harris 9c8a3d628a Handle hard dependency on certifi in requests>=2.16 2018-03-01 02:57:54 +00:00
Jonathan Harris b9815400b3 Add Alliance Chieftain and Recon Limpet Controller 2018-01-28 00:49:52 +00:00
Jonathan Harris 979162ea3d Include ship id and name in ship locations 2017-10-31 10:58:14 +00:00
Jonathan Harris 1717782886 Suppress not normally traded commodities e.g. Salvage 2017-10-08 20:09:10 +01:00
Jonathan Harris b2f13e94c7 Separate error for cAPI SKU failure 2017-10-06 19:49:04 +01:00
Jonathan Harris a90c1e982a Fix 2.4 cAPI queries 2017-09-23 13:28:44 +01:00
Jonathan Harris c2a17e60ca Collate commodities indexed by id and including symbolic name
Use collated info in export to older tools.
2017-09-23 12:58:53 +01:00
Jonathan Harris cb829ebe63 Fix for non-numeric lastStarport id 2017-09-23 12:29:25 +01:00
Jonathan Harris d0cba6f4c4 Filter commodities on legality 2017-09-23 12:29:25 +01:00
Jonathan Harris 302ce0b637 Update to the 2.4 cAPI 2017-09-13 14:16:33 +01:00
Jonathan Harris b4a1012334 No longer need to fix up commodity names 2017-09-13 00:30:15 +01:00
Jonathan Harris 4a10e43b43 Simplify generation of ship description 2017-09-07 17:17:26 +01:00
Jonathan Harris b8d982c6f2 Trim ship description 2017-09-05 19:18:55 +01:00
Jonathan Harris 6ffcfc74a1 Send 2.4-style mod info to EDShipyard and Coriolis 2017-08-24 19:36:49 +01:00
Jonathan Harris be52601c61 Speculatively add Type-10 Defender 2017-08-18 12:22:22 +01:00
Jonathan Harris 9815d6987e Tidy 2017-07-29 15:36:44 +01:00