Add tests and ignore 0 in GetFullImdbId

This commit is contained in:
Bogdan
2023-05-21 11:52:05 +03:00
parent 0fe54ed36a
commit 81b1c0e445
17 changed files with 44 additions and 27 deletions
@@ -262,7 +262,7 @@ namespace NzbDrone.Core.Indexers.Definitions
Title = CleanTitle(torrent.Name),
Description = torrent.ShortDescription,
Size = torrent.Size,
ImdbId = ParseUtil.GetImdbID(torrent.ImdbId).GetValueOrDefault(),
ImdbId = ParseUtil.GetImdbId(torrent.ImdbId).GetValueOrDefault(),
DownloadUrl = $"{_settings.BaseUrl}api/torrent/{torrent.Id}/download",
PosterUrl = torrent.Poster,
InfoUrl = torrent.Url,