mirror of
https://github.com/Radarr/Radarr
synced 2026-04-24 21:42:27 +02:00
Merge pull request #1097 from geogolem/fixIMDBNormalization
incorrect check for imdbId prefix
This commit is contained in:
commit
ae0fc019e5
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ public static string NormalizeImdbId(string imdbId)
|
||||||
{
|
{
|
||||||
if (imdbId.Length > 2)
|
if (imdbId.Length > 2)
|
||||||
{
|
{
|
||||||
return (imdbId.Substring(2) != "tt" ? $"tt{imdbId}" : imdbId);
|
return (imdbId.Substring(0,2) != "tt" ? $"tt{imdbId}" : imdbId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue