implement universalis empty listing upload

This commit is contained in:
goat 2020-09-08 21:41:31 +02:00
parent ca6a38cb16
commit 345334aee1
2 changed files with 14 additions and 0 deletions

View file

@ -179,6 +179,19 @@ namespace Dalamud.Game.Network {
request.History.AddRange(listing.HistoryListings);
Log.Verbose("Added history for item#{0}", listing.CatalogId);
if (request.AmountToArrive == 0) {
Log.Verbose("Request had 0 amount, uploading now");
try
{
Task.Run(() => this.uploader.Upload(request));
}
catch (Exception ex)
{
Log.Error(ex, "Market Board data upload failed.");
}
}
}
if (opCode == this.dalamud.Data.ServerOpCodes["MarketTaxRates"])

View file

@ -15,6 +15,7 @@ namespace Dalamud.Interface {
private const string ChangeLog =
@"* The /xlbonus command was removed - it has been remade as the ""Adventurer in Need"" plugin by Caraxi and is way better now. Please check it out!
* Plugin UI is now also hidden when in GPose or in a cutscene. You can disable this in the /xlsettings window.
* Universalis will now be updated when a shown item has no listings.
* Updated the localization files
* Added Norwegian, Korean and Russian localization - thanks a lot to all of our translators, especially Ridge, Hibiya and xDarkOne! If you wish to join the effort, please check our #translations channel.";