From 27354507cbee3be6c6641abb55d6b2198ecbf168 Mon Sep 17 00:00:00 2001 From: nitsua Date: Wed, 14 Oct 2020 14:02:34 -0400 Subject: [PATCH] Fix issue with IMDb lists (some not all) not parsing properly causing an issue when trying to add them --- .../ImportLists/RadarrList2/IMDb/IMDbListParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListParser.cs b/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListParser.cs index 22c39f152..54c2cb14f 100644 --- a/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListParser.cs +++ b/src/NzbDrone.Core/ImportLists/RadarrList2/IMDb/IMDbListParser.cs @@ -32,9 +32,9 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList if (_settings.ListId.StartsWith("ls", StringComparison.OrdinalIgnoreCase)) { //Parse TSV response from IMDB export - var row = importResponse.Content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); + var rows = importResponse.Content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); - movies = row.Skip(1).SelectList(m => new ImportListMovie { ImdbId = m.Split(',')[1] }); + movies = rows.Skip(1).SelectList(m => m.Split(',')).Where(m => m.Length > 1).SelectList(i => new ImportListMovie { ImdbId = i[1] }); return movies; }