From 4c4b16d234a3da2da44fbd470f4a8226f9b3ea4b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 14 Jun 2024 22:10:09 +0300 Subject: [PATCH] Fixed: (FileList) Parsing poorly padded IMDb Ids --- .../Indexers/Definitions/FileList/FileListParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs index 7b2e8cf32..5f26c4ed2 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs @@ -61,7 +61,7 @@ public class FileListParser : IParseIndexerResponse var imdbId = 0; if (row.ImdbId is { Length: > 2 }) { - imdbId = int.Parse(row.ImdbId.Substring(2)); + int.TryParse(row.ImdbId.TrimStart('t'), out imdbId); } var downloadVolumeFactor = row.FreeLeech ? 0 : 1;