RuTor Bugfix

This commit is contained in:
KZ 2015-08-06 22:53:53 +01:00
parent d14554e45b
commit 12ce858cf3
2 changed files with 10 additions and 4 deletions

View File

@ -33,6 +33,7 @@ Download in the [Releases page](https://github.com/zone117x/Jackett/releases)
* [MoreThan.tv](https://morethan.tv/)
* [pretome](https://pretome.info)
* [PrivateHD](https://privatehd.to/)
* [RuTor](http://rutor.org/)
* [SceneAccess](https://sceneaccess.eu/login)
* [SceneTime](https://www.scenetime.com/)
* [ShowRSS](https://showrss.info/)

View File

@ -170,8 +170,12 @@ namespace Jackett.Indexers
release.PublishDate = DateTime.ParseExact(date, "ddMMyy", CultureInfo.InvariantCulture);
release.Title = row.Cq().Find("td:eq(1)").Text().Trim();
var hasTorrent = row.Cq().Find("td:eq(1) a").Length == 3;
var titleIndex = 1;
if (hasTorrent)
titleIndex++;
release.Title = row.Cq().Find("td:eq("+ titleIndex+")").Text().Trim();
if (configData.StripRussian.Value)
{
var split = release.Title.IndexOf('/');
@ -195,11 +199,12 @@ namespace Jackett.Indexers
release.Seeders = ParseUtil.CoerceInt(row.Cq().Find(".green").Text().Trim());
release.Peers = ParseUtil.CoerceInt(row.Cq().Find(".red").Text().Trim()) + release.Seeders;
release.Guid = new Uri(configData.Url.Value + row.Cq().Find("td:eq(1) a:eq(1)").Attr("href").Substring(1));
release.Guid = new Uri(configData.Url.Value + row.Cq().Find("td:eq(1) a:eq("+ titleIndex+")").Attr("href").Substring(1));
release.Comments = release.Guid;
var hasTorrent = row.Cq().Find("td:eq(1) a").Length == 3;
if (hasTorrent)
{