populate book locale on library update

This commit is contained in:
Robert McRackan 2020-08-20 16:49:50 -04:00
parent c67972a327
commit 80017ce9fd
3 changed files with 7 additions and 2 deletions

View File

@ -243,6 +243,9 @@ namespace DataLayer
Category = category; Category = category;
} }
public override string ToString() => $"[{AudibleProductId}] {Title}"; public void UpdateLocale(string localeName)
=> Locale ??= localeName;
public override string ToString() => $"[{AudibleProductId}] {Title}";
} }
} }

View File

@ -129,6 +129,8 @@ namespace DtoImporterService
book.PictureId = item.PictureId; book.PictureId = item.PictureId;
book.UpdateProductRating(item.Product_OverallStars, item.Product_PerformanceStars, item.Product_StoryStars); book.UpdateProductRating(item.Product_OverallStars, item.Product_PerformanceStars, item.Product_StoryStars);
book.UpdateLocale(Account.Locale.Name);
// important to update user-specific info. this will have changed if user has rated/reviewed the book since last library import // important to update user-specific info. this will have changed if user has rated/reviewed the book since last library import
book.UserDefinedItem.UpdateRating(item.MyUserRating_Overall, item.MyUserRating_Performance, item.MyUserRating_Story); book.UserDefinedItem.UpdateRating(item.MyUserRating_Overall, item.MyUserRating_Performance, item.MyUserRating_Story);

View File

@ -13,7 +13,7 @@
<!-- <PublishSingleFile>true</PublishSingleFile> --> <!-- <PublishSingleFile>true</PublishSingleFile> -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>3.1.12.139</Version> <Version>3.1.12.140</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>