1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 14:51:01 +00:00

improve imdbid selector matching for a bunch of c# indexers

This commit is contained in:
Garfield69 2019-10-07 10:56:47 +13:00
parent 3c7415e8df
commit 85850c0d97
4 changed files with 4 additions and 4 deletions

View file

@ -403,7 +403,7 @@ namespace Jackett.Common.Indexers
release.Description = genres;
// IMDB
var imdbLink = tRow.Find("a[href*=\"http://imdb.com/title/\"]").First().Attr("href");
var imdbLink = tRow.Find("a[href*=\"imdb.com/title/tt\"]").First().Attr("href");
release.Imdb = ParseUtil.GetLongFromString(imdbLink);
if (tRow.Find("img[title=\"100% freeleech\"]").Length >= 1)

View file

@ -413,7 +413,7 @@ namespace Jackett.Common.Indexers
};
// IMDB
var imdbLink = tRow.Find("a[href*=\"http://imdb.com/title/\"]").First().Attr("href");
var imdbLink = tRow.Find("a[href*=\"imdb.com/title/tt\"]").First().Attr("href");
release.Imdb = ParseUtil.GetLongFromString(imdbLink);
if (tRow.Find("img[title=\"Free Torrent\"]").Length >= 1)

View file

@ -155,7 +155,7 @@ namespace Jackett.Common.Indexers
var bannerURL = new Uri(SiteLink + groupPoster.GetAttribute("src"));
long? IMDBId = null;
var imdbLink = Group.QuerySelector("a[href^=\"http://anonym.to/?http://www.imdb.com/title/tt\"]");
var imdbLink = Group.QuerySelector("a[href*=\"www.imdb.com/title/tt\"]");
if (imdbLink != null)
{
var IMDBMatch = IMDBRegEx.Match(imdbLink.GetAttribute("href"));

View file

@ -255,7 +255,7 @@ namespace Jackett.Common.Indexers
if (!infoMatch.Success)
throw new Exception("Unable to find info");
var imdbMatch = Regex.Match(description, "(?<=http://www.imdb.com/title/tt)([0-9]*)");
var imdbMatch = Regex.Match(description, "(?<=www.imdb.com/title/tt)([0-9]*)");
long? imdbID = null;
if (imdbMatch.Success)
{