Skip to content

Commit

Permalink
Bugfix: some series indexes/sequences could cause library not to import
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McRackan committed Feb 17, 2020
1 parent ed03fd2 commit f27ac27
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion DtoImporterService/UNTESTED/BookImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,18 @@ private void updateBook(Item item, Book book)
foreach (var seriesEntry in item.Series)
{
var series = DbContext.Series.Local.Single(s => seriesEntry.SeriesId == s.AudibleSeriesId);
book.UpsertSeries(series, seriesEntry.Index);

var index = 0f;
try
{
index = seriesEntry.Index;
}
catch (Exception ex)
{
Serilog.Log.Logger.Error(ex, $"Error parsing series index. Title: {item.Title}. ASIN: {item.Asin}. Series index: {seriesEntry.Sequence}");
}

book.UpsertSeries(series, index);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion LibationLauncher/LibationLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- <PublishSingleFile>true</PublishSingleFile> -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

<Version>3.1.4.8</Version>
<Version>3.1.5.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions REFERENCE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- begin VERSIONING ---------------------------------------------------------------------------------------------------------------------
https://github.com/rmcrackan/Libation/releases

v3.1.5 : Bugfix: some series indexes/sequences could cause library not to import
v3.1.4 : Bugfix: IsAuthorNarrated was returning no books
v3.1.3 : fix weirdness with build number
v3.1.2 : minor bug fixes
Expand Down

0 comments on commit f27ac27

Please sign in to comment.