1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-04 06:38:28 +02:00

Fixed: Importing from IMDb list

This commit is contained in:
Mark McDowall 2024-06-12 16:06:31 -07:00 committed by Mark McDowall
parent 7fccf590a8
commit f8e81396d4

View File

@ -24,7 +24,7 @@ public IList<ImportListItemInfo> ParseResponse(ImportListResponse importListResp
// Parse TSV response from IMDB export
var rows = importResponse.Content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
series = rows.Skip(1).SelectList(m => m.Split(',')).Where(m => m.Length > 1).SelectList(i => new ImportListItemInfo { ImdbId = i[1] });
series = rows.Skip(1).SelectList(m => m.Split(',')).Where(m => m.Length > 5).SelectList(i => new ImportListItemInfo { ImdbId = i[1], Title = i[5] });
return series;
}