From 49ed9691c8609edc27e810deb9dab1ec66f9d1b4 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Thu, 26 Feb 2026 10:42:38 -0600 Subject: [PATCH] remove trakt client id (that will expire) --- CHANGELOG.md | 5 +++++ .../MediaCollections/Commands/AddTraktListHandler.cs | 4 ++-- ErsatzTV/appsettings.json | 5 +---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18ffa546d..9e1dd6403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Changed - Remove BugSnag error reporting integration +- Remove developer's personal Trakt API key + - Users who want to continue to use Trakt must create an API app and set the `Client ID` as the environment variable `TRAKT__CLIENTID` + +### Fixed +- Support adding trakt lists using `app.trakt.tv` domain (instead of just `trakt.tv`) ## [26.3.0] - 2026-02-24 ### Added diff --git a/ErsatzTV.Application/MediaCollections/Commands/AddTraktListHandler.cs b/ErsatzTV.Application/MediaCollections/Commands/AddTraktListHandler.cs index 538c3d6fa..0c6d52847 100644 --- a/ErsatzTV.Application/MediaCollections/Commands/AddTraktListHandler.cs +++ b/ErsatzTV.Application/MediaCollections/Commands/AddTraktListHandler.cs @@ -110,10 +110,10 @@ public partial class AddTraktListHandler : TraktCommandBase, IRequestHandler Unit.Default); } - [GeneratedRegex(@"https:\/\/trakt\.tv\/users\/([\w\-_]+)\/(?:lists\/)?([\w\-_]+)")] + [GeneratedRegex(@"https:\/\/(?:app\.)?trakt\.tv\/users\/([\w\-_]+)\/(?:lists\/)?([\w\-_]+)")] private static partial Regex UriTraktListRegex(); - [GeneratedRegex(@"https:\/\/trakt\.tv\/lists\/([\w\-_]+)\/([\w\-_]+)")] + [GeneratedRegex(@"https:\/\/(?:app\.)?trakt\.tv\/lists\/([\w\-_]+)\/([\w\-_]+)")] private static partial Regex UriTraktListRegex2(); [GeneratedRegex(@"([\w\-_]+)\/(?:lists\/)?([\w\-_]+)")] diff --git a/ErsatzTV/appsettings.json b/ErsatzTV/appsettings.json index 44e354a7c..af72e35cc 100644 --- a/ErsatzTV/appsettings.json +++ b/ErsatzTV/appsettings.json @@ -15,8 +15,5 @@ "WithThreadId" ] }, - "AllowedHosts": "*", - "Trakt": { - "ClientId": "e30585c7db49eaf1bd80d7ce5296d5de0bb33e1166f323cd7202412a605c609a" - } + "AllowedHosts": "*" }