mirror of https://github.com/Jackett/Jackett
parent
35358e3c76
commit
31fbcc1c53
|
@ -22,14 +22,10 @@ namespace Jackett.Common.Indexers
|
||||||
private string LoginUrl => SiteLink + "login.php";
|
private string LoginUrl => SiteLink + "login.php";
|
||||||
private string SearchUrl => SiteLink + "torrents.php?action=basic&order_by=time&order_way=desc&search_type=0&taglist=&tags_type=0";
|
private string SearchUrl => SiteLink + "torrents.php?action=basic&order_by=time&order_way=desc&search_type=0&taglist=&tags_type=0";
|
||||||
|
|
||||||
private new ConfigurationDataBasicLogin configData
|
private new ConfigurationDataBasicLogin configData => (ConfigurationDataBasicLogin)base.configData;
|
||||||
{
|
|
||||||
get => (ConfigurationDataBasicLogin)base.configData;
|
|
||||||
set => base.configData = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Nebulance(IIndexerConfigurationService configService, Utils.Clients.WebClient c, Logger l, IProtectionService ps)
|
public Nebulance(IIndexerConfigurationService configService, Utils.Clients.WebClient c, Logger l, IProtectionService ps)
|
||||||
: base(id: "transmithenet",
|
: base(id: "nebulance",
|
||||||
name: "Nebulance",
|
name: "Nebulance",
|
||||||
description: "At Nebulance we will change the way you think about TV",
|
description: "At Nebulance we will change the way you think about TV",
|
||||||
link: "https://nebulance.io/",
|
link: "https://nebulance.io/",
|
||||||
|
@ -79,28 +75,19 @@ namespace Jackett.Common.Indexers
|
||||||
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
|
protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuery query)
|
||||||
{
|
{
|
||||||
var loggedInCheck = await RequestStringWithCookies(SearchUrl);
|
var loggedInCheck = await RequestStringWithCookies(SearchUrl);
|
||||||
if (!loggedInCheck.Content.Contains("logout.php"))
|
if (!loggedInCheck.Content.Contains("logout.php")) // re-login
|
||||||
{
|
|
||||||
//Cookie appears to expire after a period of time or logging in to the site via browser
|
|
||||||
await DoLogin();
|
await DoLogin();
|
||||||
}
|
|
||||||
|
|
||||||
// #6413
|
// #6413
|
||||||
//string Url;
|
var url = $"{SearchUrl}&searchtext={WebUtility.UrlEncode(query.GetQueryString())}";
|
||||||
//if (string.IsNullOrEmpty(query.GetQueryString()))
|
|
||||||
// Url = SearchUrl;
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
var Url = $"{SearchUrl}&searchtext={WebUtility.UrlEncode(query.GetQueryString())}";
|
|
||||||
//}
|
|
||||||
|
|
||||||
var response = await RequestStringWithCookiesAndRetry(Url);
|
var response = await RequestStringWithCookiesAndRetry(url);
|
||||||
var releases = ParseResponse(response.Content);
|
var releases = ParseResponse(response.Content);
|
||||||
|
|
||||||
return releases;
|
return releases;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ReleaseInfo> ParseResponse(string htmlResponse)
|
private List<ReleaseInfo> ParseResponse(string htmlResponse)
|
||||||
{
|
{
|
||||||
var releases = new List<ReleaseInfo>();
|
var releases = new List<ReleaseInfo>();
|
||||||
|
|
||||||
|
@ -128,9 +115,7 @@ namespace Jackett.Common.Indexers
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (title.Length > 5 && title.Substring(title.Length - 5).Contains("."))
|
if (title.Length > 5 && title.Substring(title.Length - 5).Contains("."))
|
||||||
{
|
title = title.Remove(title.LastIndexOf(".", StringComparison.Ordinal));
|
||||||
title = title.Remove(title.LastIndexOf("."));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
release.Title = title;
|
release.Title = title;
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace Jackett.Common.Services
|
||||||
private readonly Dictionary<string, string> renamedIndexers = new Dictionary<string, string>
|
private readonly Dictionary<string, string> renamedIndexers = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{"tehconnectionme", "anthelion"},
|
{"tehconnectionme", "anthelion"},
|
||||||
|
{"transmithenet", "nebulance"},
|
||||||
{"nostalgic", "vhstapes"}
|
{"nostalgic", "vhstapes"}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue