diff --git a/PlexRequests.Api/MusicBrainzApi.cs b/PlexRequests.Api/MusicBrainzApi.cs index 1c9210a6b..b9c581986 100644 --- a/PlexRequests.Api/MusicBrainzApi.cs +++ b/PlexRequests.Api/MusicBrainzApi.cs @@ -82,7 +82,7 @@ namespace PlexRequests.Api try { - return Api.Execute(request, BaseUri); + return Api.ExecuteJson(request, BaseUri); } catch (JsonSerializationException jse) { diff --git a/PlexRequests.UI/Modules/SearchModule.cs b/PlexRequests.UI/Modules/SearchModule.cs index 9200d69c4..ff3ecf31b 100644 --- a/PlexRequests.UI/Modules/SearchModule.cs +++ b/PlexRequests.UI/Modules/SearchModule.cs @@ -508,7 +508,7 @@ namespace PlexRequests.UI.Modules var artist = albumInfo.ArtistCredits?.FirstOrDefault()?.artist; if (artist == null) { - return Response.AsJson("We could not find the artist on MusicBrainz. Please try again later or contact your admin"); + return Response.AsJson(new JsonResponseModel {Result = false, Message = "We could not find the artist on MusicBrainz. Please try again later or contact your admin"}); } var model = new RequestedModel