mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-06 07:47:17 +01:00
Fixed: (MAM) Updated property name for user class
This commit is contained in:
parent
56b9da16cf
commit
a036e0fc37
1 changed files with 4 additions and 1 deletions
|
|
@ -584,8 +584,11 @@ private bool HasUserVip(Dictionary<string, string> cookies)
|
|||
_logger.Debug("Fetching user data: {0}", request.Url.FullUri);
|
||||
|
||||
var response = _httpClient.ExecuteProxied(request, _definition);
|
||||
|
||||
var jsonResponse = JsonConvert.DeserializeObject<MyAnonamouseUserDataResponse>(response.Content);
|
||||
|
||||
_logger.Trace("Current user class: '{0}'", jsonResponse.UserClass);
|
||||
|
||||
return jsonResponse.UserClass?.Trim();
|
||||
},
|
||||
TimeSpan.FromHours(1));
|
||||
|
|
@ -912,7 +915,7 @@ public class MyAnonamouseBuyPersonalFreeleechResponse
|
|||
|
||||
public class MyAnonamouseUserDataResponse
|
||||
{
|
||||
[JsonProperty(PropertyName = "class")]
|
||||
[JsonProperty(PropertyName = "classname")]
|
||||
public string UserClass { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue