1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Merge pull request #1097 from geogolem/fixIMDBNormalization

incorrect check for imdbId prefix
This commit is contained in:
geogolem 2017-03-09 13:59:33 -05:00 committed by GitHub
commit ae0fc019e5

View File

@ -603,7 +603,7 @@ public static string NormalizeImdbId(string imdbId)
{
if (imdbId.Length > 2)
{
return (imdbId.Substring(2) != "tt" ? $"tt{imdbId}" : imdbId);
return (imdbId.Substring(0,2) != "tt" ? $"tt{imdbId}" : imdbId);
}
return null;