diff --git a/CHANGELOG.md b/CHANGELOG.md index b813b4b8..127fc465 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Previously, this deco item would be ignored so watermark and filler would be missing - Fix movies with missing medata by generating fallback metadata - This allows these movies to appear in the Trash where they can be deleted +- Fix synchronizing trakt lists from users with special characters in their username + - Note that these lists MUST be added as URLs; the short-form `user/list` will NOT work with special characters ### Changed - Remove some unnecessary API calls related to media server scanning and paging diff --git a/ErsatzTV.Infrastructure/Trakt/Models/TraktUser.cs b/ErsatzTV.Infrastructure/Trakt/Models/TraktUser.cs index 5517134a..fc44455d 100644 --- a/ErsatzTV.Infrastructure/Trakt/Models/TraktUser.cs +++ b/ErsatzTV.Infrastructure/Trakt/Models/TraktUser.cs @@ -3,4 +3,6 @@ public class TraktUser { public string Username { get; set; } + + public TraktListIds Ids { get; set; } } diff --git a/ErsatzTV.Infrastructure/Trakt/TraktApiClient.cs b/ErsatzTV.Infrastructure/Trakt/TraktApiClient.cs index 017d105c..b374cb08 100644 --- a/ErsatzTV.Infrastructure/Trakt/TraktApiClient.cs +++ b/ErsatzTV.Infrastructure/Trakt/TraktApiClient.cs @@ -38,7 +38,10 @@ public class TraktApiClient : ITraktApiClient return new TraktList { TraktId = response.Ids.Trakt, - User = response.User.Username, + + // slug must be used here for proper URL generation + User = response.User.Ids.Slug, + List = response.Ids.Slug, Name = response.Name, Description = response.Description,