diff options
| author | theguymadmax <theguymadmax@proton.me> | 2026-05-07 14:04:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-07 20:04:28 +0200 |
| commit | d636b82e83f20d4a0387673a4f11916a5ee13837 (patch) | |
| tree | b1c194079f34a859fa97e40ed06b18c244beb1ae /Emby.Server.Implementations/Library/PathExtensions.cs | |
| parent | bc074b5283add16818ce598890f53ce9432cd4ad (diff) | |
Allow tmdb as an alias for tmdbid provider id (#16433)
Allow tmdb as an alias for tmdbid provider id
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/PathExtensions.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs index fc63251ad0..cfa3e7c31d 100644 --- a/Emby.Server.Implementations/Library/PathExtensions.cs +++ b/Emby.Server.Implementations/Library/PathExtensions.cs @@ -70,6 +70,16 @@ namespace Emby.Server.Implementations.Library return match ? imdbId.ToString() : null; } + // Allow tmdb as an alias for tmdbid + if (attribute.Equals("tmdbid", StringComparison.OrdinalIgnoreCase)) + { + var tmdbValue = str.GetAttributeValue("tmdb"); + if (tmdbValue is not null) + { + return tmdbValue; + } + } + return null; } |
