1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Fixed: ImdbIds not being padded with zeroes, which messes up matching.

This commit is contained in:
Leonardo Galli
2018-09-11 23:47:00 +02:00
parent 0903269b7c
commit 64e8fde0e1
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -352,7 +352,8 @@ namespace NzbDrone.Core.Parser
{
if (imdbId.Length > 2)
{
return (imdbId.Substring(0,2) != "tt" ? $"tt{imdbId}" : imdbId);
imdbId = imdbId.Replace("tt", "").PadLeft(7, '0');
return $"tt{imdbId}";
}
return null;