mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-16 16:04:08 +01:00
Fixed: Importing from IMDb list
(cherry picked from commit f8e81396d409362da359b3fde671ad826e5c68e3) Closes #10090
This commit is contained in:
parent
0a189d00ef
commit
1be2cded74
@ -33,7 +33,7 @@ public override IList<ImportListMovie> ParseResponse(ImportListResponse importLi
|
|||||||
// Parse TSV response from IMDB export
|
// Parse TSV response from IMDB export
|
||||||
var rows = importResponse.Content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
|
var rows = importResponse.Content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
||||||
movies = rows.Skip(1).SelectList(m => m.Split(',')).Where(m => m.Length > 1).SelectList(i => new ImportListMovie { ImdbId = i[1] });
|
movies = rows.Skip(1).SelectList(m => m.Split(',')).Where(m => m.Length > 5).SelectList(i => new ImportListMovie { ImdbId = i[1], Title = i[5] });
|
||||||
|
|
||||||
return movies;
|
return movies;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user