The Free Software Media System - Server Backend & API
Allow tmdb as an alias for tmdbid provider id (#16433)
theguymadmaxd636b82e83f2
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.csindex 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.Libraryreturn 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;}