Tweaks for #32

This commit is contained in:
tidusjar 2016-04-04 14:57:25 +01:00
parent 2d4f680537
commit 72ea4691dd
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ namespace PlexRequests.Api
try try
{ {
return Api.Execute<MusicBrainzReleaseInfo>(request, BaseUri); return Api.ExecuteJson<MusicBrainzReleaseInfo>(request, BaseUri);
} }
catch (JsonSerializationException jse) catch (JsonSerializationException jse)
{ {

View file

@ -508,7 +508,7 @@ namespace PlexRequests.UI.Modules
var artist = albumInfo.ArtistCredits?.FirstOrDefault()?.artist; var artist = albumInfo.ArtistCredits?.FirstOrDefault()?.artist;
if (artist == null) 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 var model = new RequestedModel