mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
improve imdbid selector matching for a bunch of c# indexers
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user