Browse Source

support imdb ids from plex (#393)

pull/394/head
Jason Dove 5 years ago committed by GitHub
parent
commit
1d5217fa84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 7
      ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

3
CHANGELOG.md

@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. @@ -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`

7
ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

@ -801,6 +801,13 @@ namespace ErsatzTV.Infrastructure.Plex @@ -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"))
{

Loading…
Cancel
Save