diff --git a/CHANGELOG.md b/CHANGELOG.md index 793f36532..2c3a44632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added +- Support IMDB ids from Plex libraries, which may improve Trakt matching for some items + ### Fixed - Include Specials/Season 0 `episode-num` entry in XMLTV - Fix some transcoding edge cases with VAAPI and pixel formats `yuv420p10le`, `yuv444p10le` and `yuv444p` diff --git a/ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs b/ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs index 50f962a8b..515b8f7f9 100644 --- a/ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs +++ b/ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs @@ -801,6 +801,13 @@ namespace ErsatzTV.Infrastructure.Plex { return guid; } + + if (guid.StartsWith("com.plexapp.agents.imdb")) + { + string strip1 = guid.Replace("com.plexapp.agents.imdb://", string.Empty); + string strip2 = strip1.Split("?").Head(); + return $"imdb://{strip2}"; + } if (guid.StartsWith("com.plexapp.agents.thetvdb")) {