FileList: add support for banner URL

This commit is contained in:
kaso17 2017-02-24 17:35:56 +01:00
parent 3b3420086f
commit ba01770b2a
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@ using System.Threading.Tasks;
using System.Web;
using Jackett.Models.IndexerConfig;
using Jackett.Models.IndexerConfig.Bespoke;
using System.Text.RegularExpressions;
namespace Jackett.Indexers
{
@ -139,6 +140,15 @@ namespace Jackett.Indexers
release.Description = qRow.Find(".torrenttable:eq(1) > span > font.small").First().Text();
var tooltip = qTitleLink.Attr("title");
if (!string.IsNullOrEmpty(tooltip))
{
var ImgRegexp = new Regex("src='(.*?)'");
var ImgRegexpMatch = ImgRegexp.Match(tooltip);
if (ImgRegexpMatch.Success)
release.BannerUrl = new Uri(ImgRegexpMatch.Groups[1].Value);
}
release.Guid = new Uri(SiteLink + qTitleLink.Attr("href"));
release.Comments = release.Guid;