Fixed: Goodreads owned books import

pull/395/head
ta264 4 years ago
parent 220808a7c4
commit ede8b9aa4a

@ -62,14 +62,13 @@ namespace NzbDrone.Core.ImportLists.Goodreads
{ {
var builder = RequestBuilder() var builder = RequestBuilder()
.SetSegment("route", $"owned_books/user") .SetSegment("route", $"owned_books/user")
.AddQueryParam("format", "xml")
.AddQueryParam("id", Settings.UserId) .AddQueryParam("id", Settings.UserId)
.AddQueryParam("page", page); .AddQueryParam("page", page);
var httpResponse = OAuthGet(builder); var httpResponse = OAuthGet(builder);
_logger.Trace("Got:\n{0}", httpResponse.Content); return httpResponse.Deserialize<PaginatedList<OwnedBookResource>>("owned_books").List;
return httpResponse.Deserialize<PaginatedList<OwnedBookResource>>("reviews").List;
} }
catch (Exception ex) catch (Exception ex)
{ {

Loading…
Cancel
Save