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
@@ -180,7 +180,7 @@ public class PixelHDParser : IParseIndexerResponse
var groupName = group.QuerySelector("strong:has(a[title=\"View Torrent\"])")?.TextContent.Replace(" ]", "]");
var imdbLink = group.QuerySelector("a[href*=\"imdb.com/title/tt\"]")?.GetAttribute("href");
var imdbId = ParseUtil.GetImdbID(imdbLink) ?? 0;
var imdbId = ParseUtil.GetImdbId(imdbLink) ?? 0;
var rows = group.QuerySelectorAll("tr.group_torrent:has(a[href^=\"torrents.php?id=\"])");
foreach (var row in rows)