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:
parent
3c7415e8df
commit
85850c0d97
4 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue