Fixed: Use User Slug for User List Trakt Requests (Requires Re-Auth for affected users)

Fixes #4168
Fixes #4440
pull/2/head
Qstick 5 years ago
parent f2a34e5eda
commit 8112ca5a43

@ -1,3 +1,5 @@
using System.Collections.Generic;
namespace NzbDrone.Core.NetImport.Trakt
{
public class TraktMovieIdsResource
@ -49,5 +51,11 @@ namespace NzbDrone.Core.NetImport.Trakt
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 @@ namespace NzbDrone.Core.NetImport.Trakt
if (response != null && response.Resource != null)
{
return response.Resource.User.Username;
return response.Resource.User.Ids.Slug;
}
}
catch (HttpException)

Loading…
Cancel
Save