mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Use User Slug for User List Trakt Requests (Requires Re-Auth for affected users)
Fixes #4168 Fixes #4440
This commit is contained in:
parent
f2a34e5eda
commit
8112ca5a43
@ -1,3 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.NetImport.Trakt
|
||||
{
|
||||
public class TraktMovieIdsResource
|
||||
@ -49,5 +51,11 @@ public class UserSettingsResponse
|
||||
public class TraktUserResource
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public TraktUserIdsResource Ids { get; set; }
|
||||
}
|
||||
|
||||
public class TraktUserIdsResource
|
||||
{
|
||||
public string Slug { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ private string GetUserName(string accessToken)
|
||||
|
||||
if (response != null && response.Resource != null)
|
||||
{
|
||||
return response.Resource.User.Username;
|
||||
return response.Resource.User.Ids.Slug;
|
||||
}
|
||||
}
|
||||
catch (HttpException)
|
||||
|
Loading…
Reference in New Issue
Block a user