Fixed: Set correct titleslug for a book

pull/1151/head
ta264 3 years ago
parent c1a846dd2b
commit 2a05112d7d

@ -604,7 +604,7 @@ namespace NzbDrone.Core.MetadataSource.Goodreads
{ {
ForeignBookId = resource.Work.Id.ToString(), ForeignBookId = resource.Work.Id.ToString(),
Title = (resource.Work.OriginalTitle ?? resource.TitleWithoutSeries).CleanSpaces(), Title = (resource.Work.OriginalTitle ?? resource.TitleWithoutSeries).CleanSpaces(),
TitleSlug = resource.Id.ToString(), TitleSlug = resource.Work.Id.ToString(),
ReleaseDate = resource.Work.OriginalPublicationDate ?? resource.PublicationDate, ReleaseDate = resource.Work.OriginalPublicationDate ?? resource.PublicationDate,
Ratings = new Ratings { Votes = resource.Work.RatingsCount, Value = resource.Work.AverageRating }, Ratings = new Ratings { Votes = resource.Work.RatingsCount, Value = resource.Work.AverageRating },
AnyEditionOk = true AnyEditionOk = true

Loading…
Cancel
Save