mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
RuTor Bugfix
This commit is contained in:
parent
d14554e45b
commit
12ce858cf3
2 changed files with 10 additions and 4 deletions
|
@ -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/)
|
||||
|
|
|
@ -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('/');
|
||||
|
@ -196,10 +200,11 @@ 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue